• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kmobiletools

enginedata.h

Go to the documentation of this file.
00001 /***************************************************************************
00002    Copyright (C) 2007
00003    by Marco Gulino <marco@kmobiletools.org>
00004    by Matthias Lechner <matthias@lmme.de>
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010 
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017 
00018    You should have received a copy of the GNU General Public License
00019    along with this program; if not, write to the
00020    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021    Boston, MA 02110-1301, USA.
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 

kmobiletools

Skip menu "kmobiletools"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal