summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/contactlist/kopetelviprops.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/kopete/contactlist/kopetelviprops.h')
-rw-r--r--kopete/kopete/contactlist/kopetelviprops.h102
1 files changed, 102 insertions, 0 deletions
diff --git a/kopete/kopete/contactlist/kopetelviprops.h b/kopete/kopete/contactlist/kopetelviprops.h
new file mode 100644
index 00000000..9a2ebf34
--- /dev/null
+++ b/kopete/kopete/contactlist/kopetelviprops.h
@@ -0,0 +1,102 @@
+/*
+ kopetelviprops.h
+
+ Kopete Contactlist Properties GUI for Groups and MetaContacts
+
+ Copyright (c) 2002-2003 by Stefan Gehn <metz AT gehn.net>
+ Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
+
+ *************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ *************************************************************************
+*/
+
+#ifndef KOPETELVIPROPS_H
+#define KOPETELVIPROPS_H
+
+#include <kdialogbase.h>
+#include <kabc/sound.h>
+
+#include "kopetemetacontact.h"
+
+#include "kopetegvipropswidget.h"
+#include "kopetemetalvipropswidget.h"
+
+class QButtonGroup;
+
+class AddressBookLinkWidget;
+class CustomNotificationProps;
+class KPushButton;
+class KopeteGroupViewItem;
+class KopeteMetaContactLVI;
+class KopeteAddressBookExport;
+class KURLRequester;
+
+namespace KABC { class Addressee; }
+namespace Kopete { class Contact; }
+
+class KopeteGVIProps: public KDialogBase
+{
+ Q_OBJECT
+
+ public:
+ KopeteGVIProps(KopeteGroupViewItem *gvi, QWidget *parent, const char *name=0L);
+ ~KopeteGVIProps();
+
+ private:
+ CustomNotificationProps * mNotificationProps;
+ KopeteGVIPropsWidget *mainWidget;
+ KopeteGroupViewItem *item;
+ bool m_dirty;
+
+ private slots:
+ void slotOkClicked();
+ void slotUseCustomIconsToggled(bool on);
+ void slotIconChanged();
+};
+
+
+class KopeteMetaLVIProps: public KDialogBase
+{
+ Q_OBJECT
+
+ public:
+ KopeteMetaLVIProps(KopeteMetaContactLVI *gvi, QWidget *parent, const char *name=0L);
+ ~KopeteMetaLVIProps();
+
+ private:
+ CustomNotificationProps * mNotificationProps;
+ QPushButton *mFromKABC;
+ KopeteMetaLVIPropsWidget *mainWidget;
+ AddressBookLinkWidget *linkWidget;
+ KopeteMetaContactLVI *item;
+ KopeteAddressBookExport *mExport;
+ KABC::Sound mSound;
+ int m_countPhotoCapable;
+ QMap<int, Kopete::Contact *> m_withPhotoContacts;
+ QString mAddressBookUid; // the currently selected addressbook UID
+
+ Kopete::MetaContact::PropertySource selectedNameSource() const;
+ Kopete::MetaContact::PropertySource selectedPhotoSource() const;
+ Kopete::Contact* selectedNameSourceContact() const;
+ Kopete::Contact* selectedPhotoSourceContact() const;
+ private slots:
+ void slotOkClicked();
+ void slotUseCustomIconsToggled( bool on );
+ void slotClearPhotoClicked();
+ void slotAddresseeChanged( const KABC::Addressee & );
+ void slotExportClicked();
+ void slotImportClicked();
+ void slotFromKABCClicked();
+ void slotOpenSoundDialog( KURLRequester *requester );
+ void slotLoadNameSources();
+ void slotLoadPhotoSources();
+ void slotEnableAndDisableWidgets();
+};
+
+#endif