00001 /* 00002 * Linux Advanced Business Enterprise Management System 00003 * 00004 * 00005 * File name....... : qlabcontactselector.h 00006 * File version.... : 1.2.8 00007 * Revision Date... : Sat Feb 21 2004 00008 * 00009 * File Description : Generic Contact Selector 00010 * 00011 * Author.......... : DJ Anubis 00012 * Copyright....... : (C) 2001-2004 by DJ Anubis 00013 * Email .......... : labproject@free.fr 00014 * 00015 * License : 00016 * Please read the license file in doc directory. 00017 * 1. Lab Public License. 00018 * You should have received a copy of the Lab Public License with this package. 00019 * If this is not the case, you can read it or download it at: 00020 * http://labproject.free.fr 00021 * 2. Q Public License. 00022 * Conformant to Trolltech QPL license. 00023 * 3. GNU General Public License. 00024 * Reserved for free projects. 00025 * 4. Commercial license. 00026 * Recommanded if your code is not distributed under one of the 3 models above. 00027 * 00028 * Read the license FAQ in doc directory. 00029 * 00030 */ 00031 00032 #ifndef LABCONTACTSELECTOR_H 00033 #define LABCONTACTSELECTOR_H 00034 00035 #include <qwidget.h> 00036 #include <qwidgetplugin.h> 00037 #include <qvariant.h> 00038 #include <qlabdbcombo.h> 00039 00040 class QString ; 00041 00042 00043 class QT_WIDGET_PLUGIN_EXPORT QlabContactSelector : public QlabDbCombo 00044 { 00045 Q_OBJECT ; 00046 00047 Q_PROPERTY( Mode contactType READ mode WRITE setMode 00048 DESIGNABLE true SCRIPTABLE true STORED true ) ; 00049 Q_ENUMS( Mode ) ; 00050 00051 public : 00052 QlabContactSelector( QWidget* parent = 0, const char* name = 0 ) ; 00053 ~QlabContactSelector() ; 00054 00058 enum Mode { All, 00059 Vendor, 00060 Customer, 00061 Prospect, 00062 User, 00063 People 00064 } ; 00065 Mode mode() const ; 00066 void setMode( Mode m ) ; 00067 00068 private : 00069 Mode md ; 00070 } ; 00071 00072 #endif // LABCONTACTSELECTOR_H