24 #ifndef COMMANDSCHEDULER_H 25 #define COMMANDSCHEDULER_H 28 #include <tqptrlist.h> 30 #include "atcommand.h" 31 #include "commandset.h" 35 class CommandScheduler : public TQObject { 39 CommandScheduler (Modem *modem,TQObject *parent = 0, const char *name = 0); 41 void execute( const TQString &command); 43 void executeId( const TQString & id); 45 Modem *modem() { return mModem; } 46 CommandSet *commandSet() { return &mCommandSet; } 48 bool loadProfile( const TQString& filename); 49 bool saveProfile( const TQString& filename); 52 void result( const TQString &); 56 void processOutput( const char *line); 59 void sendCommand( const TQString &command); 69 TQPtrList<ATCommand> mCommandQueue; 71 enum State { WAITING, PROCESSING }; TQListView item representing a modem command.
This class provides an abstraction of an AT command.
|