kmobiletools
enginedata.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef ENGINEDATA_H
00024 #define ENGINEDATA_H
00025
00026 #include <libkmobiletools/kmobiletools_export.h>
00027 #include <QtCore/QObject>
00028 #include <kcal/event.h>
00029
00030 class EngineDataPrivate;
00031 class SMSList;
00032
00033 namespace KMobileTools {
00034 class ContactsList;
00035 class Engine;
00036
00043 class KMOBILETOOLS_EXPORT EngineData : public QObject
00044 {
00045 Q_OBJECT
00046 public:
00047 enum ChargeType { Unknown = -1, Battery = 0, ACAdaptor = 1 };
00048
00056 EngineData( Engine *parentEngine );
00057 ~EngineData();
00058
00064 bool phoneConnected() const;
00065
00071 void setPhoneConnected(bool);
00072
00078 int signalStrength() const;
00079
00085 void setSignalStrength( int signalStrength );
00086
00092 int charge() const;
00093
00099 void setCharge( int charge );
00100
00105 int chargeType() const;
00106
00112 void setChargeType( ChargeType chargeType );
00113
00119 bool phoneRinging() const;
00120
00126 void setPhoneRinging( bool ringing );
00127
00133 QString networkName() const;
00134
00140 void setNetworkName( const QString& networkName );
00141
00147 QString manufacturer() const;
00148
00154 void setManufacturer( const QString &manufacturer );
00155
00161 int manufacturerID() const;
00162
00168 void setManufacturerID( int manufacturerID );
00169
00175 QString model() const;
00176
00182 void setModel( const QString& model );
00183
00190 QString imei() const;
00191
00198 void setIMEI( const QString& imei );
00199
00205 QString smsCenter() const;
00206
00212 void setSMSCenter( const QString& smsc );
00213
00219 QString revision() const;
00220
00226 void setRevision( const QString& revision );
00227
00233 ContactsList* contactsList() const;
00234
00240 void setContactsList( ContactsList* contactsList );
00241
00247 void setSMSList( SMSList* smsList );
00248
00254 const SMSList* smsList() const;
00255
00261 void setCalendar( KCal::Event::List *calendar );
00262
00268 const KCal::Event::List *calendar();
00269
00270 Q_SIGNALS:
00274 void disconnected();
00275
00279 void connected();
00280
00286 void signalStrengthChanged( int signalStrength );
00287
00293 void chargeChanged( int charge );
00294
00300 void chargeTypeChanged( ChargeType chargeType );
00301
00307 void ringing( bool ringing );
00308
00314 void networkNameChanged( const QString& name );
00315
00321 void smsAdded( const QString & sms );
00322
00328 void smsDeleted( const QString & sms );
00329
00335 void smsModified( const QString & sms );
00336
00340 void phoneBookChanged();
00341
00346 void calendarChanged();
00347
00348 private:
00349 EngineDataPrivate *const d;
00350 };
00351 }
00352
00353
00354 #endif
00355
00356