kandy
kandyview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KANDYVIEW_H
00025 #define KANDYVIEW_H
00026
00027 #include <tqwidget.h>
00028
00029 class TQPainter;
00030 class TQTextStream;
00031 class TQDataStream;
00032 class TQDomDocument;
00033 class TQDomElement;
00034 class TQTextEdit;
00035 class TQListView;
00036
00037 class KURL;
00038
00039 class Modem;
00040 class ATCommand;
00041 class MobileGui;
00042 class CommandScheduler;
00043 class CmdPropertiesDialog;
00044
00051 class KandyView : public QWidget
00052 {
00053 Q_OBJECT
00054 public:
00058 KandyView(CommandScheduler *,TQWidget *parent);
00059
00063 virtual ~KandyView();
00064
00069 void importPhonebook();
00070
00074 void print(TQPainter *, int height, int width);
00075
00076 bool loadFile(const TQString& filename);
00077 bool saveFile(const TQString& filename);
00078
00079 void setModified(bool modified=true);
00080 bool isModified();
00081
00082 public slots:
00083 void addCommand();
00084 void executeCommand();
00085 void deleteCommand();
00086 void editCommand();
00087
00088 signals:
00092 void signalChangeStatusbar(const TQString& text);
00093
00097 void signalChangeCaption(const TQString& text);
00098
00099 void modifiedChanged(bool);
00100
00101 protected slots:
00102 void appendOutput(const char *line);
00103
00104 void setResult(ATCommand *);
00105
00106 private slots:
00107 void slotSetTitle(const TQString& title);
00108 void processLastLine();
00109
00110 private:
00111 TQString mLastInput;
00112
00113 CommandScheduler *mScheduler;
00114
00115 bool mModified;
00116
00117 TQListView *mCommandList;
00118
00119 TQTextEdit *mInput;
00120 TQTextEdit *mOutput;
00121 TQTextEdit *mResultView;
00122 };
00123
00124 #endif // KANDYVIEW_H
|