- py_accept_drops()
: misc_python.h
- py_attach_clickArea()
: misc_python.h
- py_call_theme()
: misc_python.h
- py_change_interval()
: misc_python.h
- py_create_click_area()
: misc_python.h
- py_create_service_click_area()
: misc_python.h
- py_execute_command()
: misc_python.h
- py_execute_command_interactive()
: misc_python.h
- py_get_incoming_data()
: misc_python.h
- py_get_ip()
: misc_python.h
- py_get_number_of_desktops()
: misc_python.h
- py_get_pretty_name()
: misc_python.h
- py_get_theme_path()
: misc_python.h
- py_get_update_time()
: misc_python.h
- py_hide()
: 00147 if (replyType == "QString")
00148 {
00149 reply >> result;
00150 result.replace( QRegExp("_")," " );
00151 result.replace( QRegExp(".mp3$"),"" );
00152
00153 }
00154 else
00155 {
00156 result = "";
00157 qDebug("title returned an unexpected type of reply!");
00158 }
00159 }
00160 return result;
00161 }
00162
00163
00164 int NoatunSensor::getTime()
00165 {
00166 QByteArray data, replyData;
00167 QCString replyType;
00168 int result;
00169 QDataStream arg(data, IO_WriteOnly);
00170 arg << 5;
00171 if (!client->call( noatunID, "Noatun", "position()",
00172 data, replyType, replyData))
00173 {
00174 result = 0;
00175 qDebug("there was some error using DCOP.");
00176 }
00177 else
00178 {
00179 QDataStream reply(replyData, IO_ReadOnly);
00180 if (replyType == "int")
00181 {
00182 reply >> result;
00183 }
00184 else
00185 {
00186 result = 0;
00187 qDebug("title returned an unexpected type of reply!");
00188 }
00189 }
00190 return result;
00191 }
00192
00193
00194 int NoatunSensor::getLength()
00195 {
00196 QByteArray data, replyData;
00197 QCString replyType;
00198 int result;
00199 QDataStream arg(data, IO_WriteOnly);
00200 arg << 5;
00201 if (!client->call( noatunID, "Noatun", "length()",
00202 data, replyType, replyData))
00203 {
00204 result = 0;
00205 qDebug("there was some error using DCOP.");
00206 }
00207 else
00208 {
00209 QDataStream reply(replyData, IO_ReadOnly);
00210 if (replyType == "int")
00211 {
00212 reply >> result;
00213 }
00214 else
00215 {
00216 result = 0;
00217 qDebug("title returned an unexpected type of reply!");
00218 }
00219 }
00220 return result;
00221 }
00222
00223
00224 void NoatunSensor::setMaxValue( SensorParams *sp)
00225 {
00226 Meter *meter;
00227 meter = sp->getMeter();
00228 QString f;
00229 f = sp->getParam("FORMAT");
00230
00231 if ( f == "%full" )
00232 meter->setMax( 1 );
00233
00234 }
|