Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

XMMSSensor Class Reference

#include <xmmssensor.h>

Inheritance diagram for XMMSSensor:

Inheritance graph
[legend]
Collaboration diagram for XMMSSensor:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotLoadConfig ()

Signals

void songChange ()

Public Member Functions

 XMMSSensor (int interval, QString encoding="", int nw=0, int nh=0, karamba *k=0)
 ~XMMSSensor ()
void update ()

Public Attributes

int w
int h
int defW
int defH
int vol
QString dir
QString cover
QString rcover
QString fp
QString title
QString artist
QString album
QString stitle
QString track
int current
QString file
int rate
double freq
int channel
QString monoster
int pos
int songLength
int currentTime

Detailed Description

Author:
Hans Karlsson <karlsson.h@home.se>

Bosselut Cyril <bosselut@b1project.com>

Version:
0.23

Definition at line 40 of file xmmssensor.h.


Constructor & Destructor Documentation

XMMSSensor::XMMSSensor int  interval,
QString  encoding = "",
int  nw = 0,
int  nh = 0,
karamba k = 0
 

create a new XMMS sensor with refresh interval "interval" and character encoding "encoding"

Definition at line 12 of file xmmssensor.cpp.

References album, artist, current, currentTime, h, pos, slotLoadConfig(), songChange(), stitle, title, track, vol, and w.

XMMSSensor::~XMMSSensor  ) 
 

destructor

Definition at line 45 of file xmmssensor.cpp.


Member Function Documentation

void XMMSSensor::slotLoadConfig  )  [slot]
 

Use this slot to read karambarc.

Definition at line 473 of file xmmssensor.cpp.

References defH, and defW.

Referenced by XMMSSensor().

void XMMSSensor::songChange  )  [signal]
 

Referenced by XMMSSensor().

void XMMSSensor::update  )  [virtual]
 

update sensor display

Implements Sensor.

Definition at line 280 of file xmmssensor.cpp.

References album, artist, channel, cover, currentTime, file, freq, SensorParams::getMeter(), SensorParams::getParam(), monoster, rate, rcover, Meter::setMax(), Meter::setValue(), songLength, stitle, title, track, and vol.


Member Data Documentation

QString XMMSSensor::album
 

album

Definition at line 103 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

QString XMMSSensor::artist
 

artist

Definition at line 99 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

int XMMSSensor::channel
 

number of channel (1 = mono, 2 = stereo)

Definition at line 131 of file xmmssensor.h.

Referenced by update().

QString XMMSSensor::cover
 

cover thumbnail path

Definition at line 83 of file xmmssensor.h.

Referenced by update().

int XMMSSensor::current
 

last position in playlist

Definition at line 115 of file xmmssensor.h.

Referenced by XMMSSensor().

int XMMSSensor::currentTime
 

Time elapsed

Definition at line 147 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

int XMMSSensor::defH
 

default cover thumbnail height

Definition at line 71 of file xmmssensor.h.

Referenced by slotLoadConfig().

int XMMSSensor::defW
 

default cover thumbnail width

Definition at line 67 of file xmmssensor.h.

Referenced by slotLoadConfig().

QString XMMSSensor::dir
 

music file path

Definition at line 79 of file xmmssensor.h.

QString XMMSSensor::file
 

music file

Definition at line 119 of file xmmssensor.h.

Referenced by update().

QString XMMSSensor::fp
 

file pointer on temporary cover file

Definition at line 91 of file xmmssensor.h.

double XMMSSensor::freq
 

frequency in hz

Definition at line 127 of file xmmssensor.h.

Referenced by update().

int XMMSSensor::h
 

cover thumbnail height

Definition at line 63 of file xmmssensor.h.

Referenced by XMMSSensor().

QString XMMSSensor::monoster
 

QString "mono" or "stereo"

Definition at line 135 of file xmmssensor.h.

Referenced by update().

int XMMSSensor::pos
 

position in playlist

Definition at line 139 of file xmmssensor.h.

Referenced by XMMSSensor().

int XMMSSensor::rate
 

bitrate in bps

Definition at line 123 of file xmmssensor.h.

Referenced by update().

QString XMMSSensor::rcover
 

real cover path

Definition at line 87 of file xmmssensor.h.

Referenced by update().

int XMMSSensor::songLength
 

song length

Definition at line 143 of file xmmssensor.h.

Referenced by update().

QString XMMSSensor::stitle
 

song title

Definition at line 107 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

QString XMMSSensor::title
 

artist + title + album or xmms output title

Definition at line 95 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

QString XMMSSensor::track
 

track number

Definition at line 111 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

int XMMSSensor::vol
 

volume

Definition at line 75 of file xmmssensor.h.

Referenced by update(), and XMMSSensor().

int XMMSSensor::w
 

cover thumbnail width

Definition at line 59 of file xmmssensor.h.

Referenced by XMMSSensor().


The documentation for this class was generated from the following files:
Generated on Mon May 16 14:04:38 2005 for karamba by  doxygen 1.3.9.1