27 #include <kandyiface.h> 29 #include "mobilegui_base.h" 30 #include "kandyprefs.h" 31 #include "tqvaluevector.h" 34 class CommandScheduler; 39 class MobileGui : public MobileGui_base, virtual public KandyIface 45 MobileGui( CommandScheduler *, KandyPrefs *kprefs, TQWidget* parent=0, 46 const char* name=0, WFlags fl=0 ); 52 void sendCommand( const TQString & ); 55 void statusMessage( const TQString & ); 56 void transienStatusMessage( const TQString & ); 58 void disconnectModem(); 61 void readModelInformation(); 65 void writePhonebook(); 69 void mergePhonebooks(); 70 void syncPhonebooks(); 71 void termAddOutput( const char *line ); 72 void toggleConnection(); 73 void deleteMobPhonebook(); 80 CommandScheduler *mScheduler; 81 AddressSyncer *mSyncer; 86 TQString quote( const TQString & ); 87 TQString dequote( const TQString & ); 88 void formatPBName( TQString *, TQString ); 89 TQString noSpaces( const TQString & ); 91 TQString string2GSM( const TQString & ); 92 TQString GSM2String( const TQString & ); 93 TQString decodeSuffix( const TQString & ); 94 TQString stripWhiteSpaces( const TQString & ); 98 void updateMobileBook(); 102 TQString mMobManufacturer; 104 unsigned int mPBStartIndex; 105 unsigned int mPBLength; 106 unsigned int mPBNameLength; 107 TQValueVector<bool> mPBIndexOccupied; 118 TQString mLastWriteId; 119 bool mComingFromToggleConnection; 120 bool mComingFromReadPhonebook; 121 bool mComingFromSyncPhonebooks; 122 bool mComingFromExit; 123 void writePhonebookPostProcessing(); 126 enum ABState { UNLOADED, LOADED, MODIFIED }; 127 ABState mKabState, mMobState; 128 void setKabState( ABState ); 129 void warnKabState( ABState ); 130 void setMobState( ABState ); 131 bool warnMobState( ABState ); 137 #endif // MOBILEGUI_H This class provides an abstraction of an AT command.
|