• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/kopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • kopete
  • contactlist
kopetelviprops.h
Go to the documentation of this file.
1 /*
2  kopetelviprops.h
3 
4  Kopete Contactlist Properties GUI for Groups and MetaContacts
5 
6  Copyright (c) 2002-2003 by Stefan Gehn <metz@gehn.net>
7 
8  Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
9 
10  *************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  *************************************************************************
18 */
19 
20 #ifndef KOPETELVIPROPS_H
21 #define KOPETELVIPROPS_H
22 
23 #include <kdialog.h>
24 #include <kabc/sound.h>
25 
26 #include "kopetemetacontact.h"
27 
28 #include "ui_kopetemetalvipropswidget.h"
29 #include "ui_kopetegvipropswidget.h"
30 
31 class AddressBookLinkWidget;
32 class CustomNotificationProps;
33 class KopeteAddressBookExport;
34 class KUrlRequester;
35 
36 namespace KABC { class Addressee; }
37 namespace Kopete {
38  class Contact;
39  class Group;
40 }
41 
42 class KopeteGVIProps: public KDialog
43 {
44  Q_OBJECT
45 
46  public:
47  KopeteGVIProps(Kopete::Group *group, QWidget *parent);
48  ~KopeteGVIProps();
49 
50  private:
51  CustomNotificationProps * mNotificationProps;
52  QWidget *mainWidget;
53  Ui::KopeteGVIPropsWidget *ui_mainWidget;
54  Kopete::Group *mGroup;
55  bool m_dirty;
56 
57  private slots:
58  void slotOkClicked();
59  void slotUseCustomIconsToggled(bool on);
60  void slotIconChanged();
61 };
62 
63 
64 class KopeteMetaLVIProps: public KDialog
65 {
66  Q_OBJECT
67 
68  public:
69  KopeteMetaLVIProps(Kopete::MetaContact *metaContact, QWidget *parent);
70  ~KopeteMetaLVIProps();
71 
72  private:
73  CustomNotificationProps * mNotificationProps;
74  QPushButton *mFromKABC;
75  QWidget* mainWidget;
76  Ui::KopeteMetaLVIPropsWidget *ui_mainWidget;
77  AddressBookLinkWidget *linkWidget;
78  Kopete::MetaContact *mMetaContact;
79  KopeteAddressBookExport *mExport;
80  KABC::Sound mSound;
81  int m_countPhotoCapable;
82  QMap<int, Kopete::Contact *> m_withPhotoContacts;
83  QString mAddressBookUid; // the currently selected addressbook UID
84  QString m_photoPath;
85 
86  void setContactsNameTypes();
87 
88  Kopete::MetaContact::PropertySource selectedNameSource() const;
89  Kopete::MetaContact::PropertySource selectedPhotoSource() const;
90  Kopete::Contact* selectedNameSourceContact() const;
91  Kopete::Contact* selectedPhotoSourceContact() const;
92  private slots:
93  void slotOkClicked();
94  void slotUseCustomIconsToggled( bool on );
95  void slotClearPhotoClicked();
96  void slotAddresseeChanged( const KABC::Addressee & );
97  void slotExportClicked();
98  void slotImportClicked();
99  void slotFromKABCClicked();
100  void slotOpenSoundDialog( KUrlRequester *requester );
101  void slotLoadNameSources();
102  void slotLoadPhotoSources();
103  void slotSelectPhoto();
104  void slotEnableAndDisableWidgets();
105 };
106 
107 #endif
QWidget
KopeteAddressBookExport
Definition: kopeteaddrbookexport.h:40
QMap< int, Kopete::Contact * >
KDialog
KopeteGVIProps::KopeteGVIProps
KopeteGVIProps(Kopete::Group *group, QWidget *parent)
Definition: kopetelviprops.cpp:71
Kopete::Items::MetaContact
Definition: kopeteitembase.h:57
Kopete::Items::Group
Definition: kopeteitembase.h:57
QString
KopeteMetaLVIProps::KopeteMetaLVIProps
KopeteMetaLVIProps(Kopete::MetaContact *metaContact, QWidget *parent)
Definition: kopetelviprops.cpp:161
KopeteGVIProps
Definition: kopetelviprops.h:42
KopeteMetaLVIProps
Definition: kopetelviprops.h:64
CustomNotificationProps
Definition: customnotificationprops.h:30
QPushButton
KopeteGVIProps::~KopeteGVIProps
~KopeteGVIProps()
Definition: kopetelviprops.cpp:118
KopeteMetaLVIProps::~KopeteMetaLVIProps
~KopeteMetaLVIProps()
Definition: kopetelviprops.cpp:278
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/kopete

Skip menu "kopete/kopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal