kandy Library API Documentation

mobilegui.h

00001 #ifndef MOBILEGUI_H
00002 #define MOBILEGUI_H
00003 
00004 #include <kandyiface.h>
00005 
00006 #include "mobilegui_base.h"
00007 
00008 class CommandScheduler;
00009 class ATCommand;
00010 class AddressSyncer;
00011 
00012 class MobileGui : public MobileGui_base, virtual public KandyIface
00013 { 
00014     Q_OBJECT
00015   public:
00016     MobileGui(CommandScheduler *,QWidget* parent=0,const char* name=0,
00017               WFlags fl=0);
00018     ~MobileGui();
00019 
00020     void exit();
00021 
00022   signals:
00023     void sendCommand(const QString &);
00024     void phonebookRead();
00025 
00026     void statusMessage(const QString &);
00027     void transientStatusMessage(const QString &);
00028 
00029   public slots:
00030     void readModelInformation();
00031     void readPhonebook();
00032     void savePhonebook();
00033     void refreshStatus();
00034     void writePhonebook();
00035     void readKabc();
00036     void writeKabc();
00037     void mergePhonebooks();
00038     void syncPhonebooks();
00039 
00040   protected slots:
00041     void processResult(ATCommand *);
00042 
00043   private:
00044     void fillPhonebook(ATCommand *);
00045     QString quote(const QString &);
00046     QString dequote(const QString &);
00047   
00048     void updateKabBook();
00049     void updateMobileBook();
00050     void updateCommonBook();
00051   
00052     CommandScheduler *mScheduler;
00053     
00054     AddressSyncer *mSyncer;
00055     
00056     QString mLastWriteId;
00057     QString mSyncReadId;
00058     QString mSyncWriteId;
00059     
00060     bool mSyncing;
00061 };
00062 
00063 #endif // MOBILEGUI_H
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:32 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001