Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

newcontact.h

00001 /*! 00002 @class NewContact 00003 @brief Zeigt einen "NewContact" Dialog. 00004 @author Thomas Gemperli, <bluephone@gemperli.net> 00005 @version 1.0 00006 @date 2004-08-05 00007 @par This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License. 00009 @file newcontact.h 00010 */ 00011 00012 #ifndef NEWCONTACT_H 00013 #define NEWCONTACT_H 00014 00015 #include "newcontactdlg.h" 00016 00017 00018 00019 /** 00020 * Zeigt einen "NewContact" Dialog und sendet die Eingaben an BluePhone. 00021 * Ich verwende fuer Edit den selben Dialog wie fuer New. 00022 * Via Konstruktor (Mode) wird definiert, welchen Modus der Dialog hat. 00023 */ 00024 class NewContact : public FormNewContactDlg 00025 { 00026 Q_OBJECT 00027 00028 public: 00029 /** 00030 * Erstellt einen NewContactDlg. 00031 * Falle editiert wird, erwartet der Konstruktor die Daten des selektierten Eintrages. 00032 * Meine Parameter: QString Mode, ContactId, ContactType, ContactName, ContactNumber 00033 * 00034 */ 00035 NewContact(QWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0, const QString& Mode = "new", 00036 const QString& ContactId = 0, const QString& ContactType = 0, const QString& ContactName = 0, const QString& ContactNumber = 0); 00037 00038 00039 /** 00040 * NewContact Destruktor 00041 */ 00042 ~NewContact(); 00043 00044 00045 signals: 00046 /** 00047 * Diese Signal sendet die Daten des Eintrages an Bluephone. 00048 */ 00049 void transmitContact(const QString&, const QString&, const QString&, const QString&); 00050 00051 /** 00052 * Dieses Signal setzt (diese "leuchtet") die gruene LED von BluePhone. 00053 */ 00054 void transmitLedStateGreen(); 00055 00056 00057 public slots: 00058 /** 00059 * Dieser Slot liest die Eingabefelder des Dialoges ein und sendet das Resultat via transmitContact an Bluephone. 00060 */ 00061 virtual void readContact(); 00062 00063 /** 00064 * Dieser Slot schliesst den Dialog. 00065 */ 00066 virtual void closeDialog(); 00067 00068 00069 protected: 00070 00071 00072 protected slots: 00073 00074 00075 private: 00076 /** 00077 * Beinhaltet Werte des neuen Kontaktes. 00078 */ 00079 QString m_phoneContactId, m_phoneContactType, m_phoneContactName, m_phoneContactNumber; 00080 00081 }; 00082 00083 #endif 00084

Generated on Tue Aug 17 14:42:27 2004 for BluePhone by doxygen 1.3.7