• 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
  • config
  • accounts
kopeteaccountconfig.h
Go to the documentation of this file.
1 /*
2  accountconfig.h - Kopete account config page
3 
4  Copyright (c) 2007 by Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>
5  Copyright (c) 2003-2004 by Olivier Goffart <ogoffart@kde.org>
6  Copyright (c) 2007 by Will Stephenson <wstephenson@kde.org>
7 
8  Kopete (c) 2003-2007 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 KOPETEACCOUNTCONFIG_H
21 #define KOPETEACCOUNTCONFIG_H
22 
23 #include <kcmodule.h>
24 #include <qmap.h>
25 #include <qcolor.h>
26 
27 #include "kopeteonlinestatus.h"
28 #include "ui_kopeteaccountconfigbase.h"
29 
30 namespace Kopete
31 {
32 class Account;
33 class Contact;
34 class Identity;
35 }
36 
37 class KopeteAccountLVI;
38 class KopeteIdentityLVI;
39 class KMenu;
40 class KAction;
41 
45 class KopeteAccountConfig : public KCModule, private Ui::KopeteAccountConfigBase
46 {
47  Q_OBJECT
48 
49 public:
50  KopeteAccountConfig(QWidget *parent, const QVariantList &args );
51 
52 protected:
53  virtual bool eventFilter( QObject *obj, QEvent *event );
54 
55 public slots:
56  virtual void save();
57  virtual void load();
58 
59 private:
60  KopeteAccountLVI* selectedAccount();
61  KopeteIdentityLVI* selectedIdentity();
62  Kopete::OnlineStatus mStatus;
63 
64  void configureActions();
65  void configureMenus();
66 
67  void modifyAccount(Kopete::Account *);
68  void modifyIdentity(Kopete::Identity *);
69  bool m_protected;
70  KMenu *m_identityContextMenu;
71  KMenu *m_accountContextMenu;
72 
73  KAction *m_actionAccountAdd;
74  KAction *m_actionAccountModify;
75  KAction *m_actionAccountRemove;
76  KAction *m_actionAccountSwitchIdentity;
77  KAction *m_actionAccountSetColor;
78 
79  KAction *m_actionIdentityAdd;
80  KAction *m_actionIdentityCopy;
81  KAction *m_actionIdentityModify;
82  KAction *m_actionIdentityRemove;
83  KAction *m_actionIdentitySetDefault;
84 
85 private slots:
86  void slotModify();
87 
88  void slotAddAccount();
89  void removeAccount();
90  void slotAccountSwitchIdentity();
91  void slotAccountSetColor();
92 
93  void slotAddIdentity();
94  void removeIdentity();
95  void slotSetDefaultIdentity();
96 
97  void slotCopyIdentity();
98  void slotAccountAdded(Kopete::Account *);
99  void slotAccountRemoved(const Kopete::Account *);
100  void slotItemSelected();
101  void slotOnlineStatusChanged( Kopete::Contact *contact,
102  const Kopete::OnlineStatus &status, const Kopete::OnlineStatus &oldStatus );
103  void slotItemChanged(QTreeWidgetItem*);
104  void slotItemClicked ( QTreeWidgetItem * item, int column );
105 };
106 #endif
107 
108 // vim: set noet ts=4 sts=4 sw=4:
QEvent
QWidget
KopeteIdentityLVI
Definition: accounttreewidget.h:50
KopeteAccountConfig::KopeteAccountConfig
KopeteAccountConfig(QWidget *parent, const QVariantList &args)
KopeteAccountConfig::load
virtual void load()
Definition: kopeteaccountconfig.cpp:145
KopeteAccountConfig
Definition: kopeteaccountconfig.h:45
QObject
KopeteAccountConfig::save
virtual void save()
Definition: kopeteaccountconfig.cpp:105
QTreeWidgetItem
KAction
KopeteAccountConfig::eventFilter
virtual bool eventFilter(QObject *obj, QEvent *event)
Definition: kopeteaccountconfig.cpp:523
KopeteAccountLVI
Definition: accounttreewidget.h:39
KCModule
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