00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef FAXAB_H
00022 #define FAXAB_H
00023
00024 #include <kdialog.h>
00025 #include <tqmap.h>
00026 #include <tqstringlist.h>
00027 #include <kabc/phonenumber.h>
00028
00029 class KListView;
00030 class AddressBook;
00031 class TQPushButton;
00032
00033 class FaxAB : public KDialog
00034 {
00035 Q_OBJECT
00036 public:
00037 FaxAB(TQWidget *parent = 0, const char *name = 0);
00038 ~FaxAB();
00039 bool isValid();
00040
00041 static bool getEntry(TQStringList& number, TQStringList& name, TQStringList& enterprise, TQWidget *parent = 0);
00042 static bool getEntryByNumber(const TQString& number, TQString& name, TQString& enterprise);
00043
00044 protected slots:
00045 void slotEditAb();
00046 void slotAbChanged(AddressBook*);
00047
00048 protected:
00049 void initialize();
00050
00051 private:
00052 struct FaxABEntry
00053 {
00054 TQString m_name;
00055 KABC::PhoneNumber m_number;
00056 TQString m_enterprise;
00057 };
00058
00059 KListView* m_list;
00060 TQMap<TQString,FaxABEntry> m_entries;
00061 TQPushButton* m_ok;
00062 };
00063
00064 #endif