28 #include <tqstringlist.h>
29 #include <tqptrlist.h>
34 ATParameter( const TQString &value, const TQString &name= "",
35 bool userInput= false);
37 void setName( const TQString &name) { mName = name; }
38 TQString name() const { return mName; }
39 void setValue( const TQString &value) { mValue = value; }
40 TQString value() const { return mValue; }
41 void setUserInput( bool userInput) { mUserInput = userInput; }
42 bool userInput() const { return mUserInput; }
58 ATCommand( const TQString &cmdName, const TQString &cmdString,
59 bool hexOutput= false);
62 void setCmdName( const TQString &);
65 void setCmdString( const TQString &);
72 void setHexOutput( bool);
75 TQString processOutput( const TQString &);
76 TQString processOutput();
78 void setResultString( const TQString &);
79 TQString resultString();
80 TQString resultField( int index);
81 TQPtrList<TQStringList> *resultFields();
83 void addParameter(ATParameter *);
84 void clearParameters();
85 TQPtrList<ATParameter> parameters();
87 void setParameter( int index, const TQString &value);
88 void setParameter( int index, int value);
90 void setAutoDelete( bool autoDelete) { mAutoDelete = autoDelete; }
91 bool autoDelete() { return mAutoDelete; }
95 void setResultFields(TQString fieldsString);
96 void extractParameters();
103 TQString mResultString;
104 TQPtrList<TQStringList> mResultFieldsList;
106 TQPtrList<ATParameter> mParameters;
This class provides an abstraction of an AT command.
|