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

kmail

  • sources
  • kde-4.12
  • kdepim
  • kmail
  • configuredialog
configureagentswidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef CONFIGUREAGENTSWIDGET_H
19 #define CONFIGUREAGENTSWIDGET_H
20 
21 #include <QWidget>
22 
23 class QTreeWidget;
24 class QSplitter;
25 class KTextEdit;
26 class QTreeWidgetItem;
27 class QPushButton;
28 class ConfigureAgentsWidget : public QWidget
29 {
30  Q_OBJECT
31 public:
32  explicit ConfigureAgentsWidget(QWidget *parent = 0);
33  ~ConfigureAgentsWidget();
34 
35  void save();
36  QString helpAnchor() const;
37  void doLoadFromGlobalSettings();
38  void doResetToDefaultsOther();
39 
40 private Q_SLOTS:
41  void slotItemClicked(QTreeWidgetItem *item);
42  void slotConfigureAgent();
43 
44 Q_SIGNALS:
45  void changed();
46 
47 private:
48  void writeConfig();
49  void readConfig();
50 
51  enum ConfigureAgentsColumn {
52  AgentState = 0,
53  AgentName
54  };
55 
56  enum ItemData {
57  InterfaceName = Qt::UserRole + 1,
58  PathName = Qt::UserRole + 2,
59  Description = Qt::UserRole + 3
60  };
61 
62  void changeAgentActiveState(bool enable, const QString &interfaceName, const QString &pathName);
63  bool agentActivateState(const QString &interfaceName, const QString &pathName, bool &failed);
64  void initialize();
65  void addInfos(QTreeWidgetItem *item, const QString &desktopFile);
66  void createItem(const QString &interfaceName, const QString &path, const QString &name);
67  QStringList mAgentPathList;
68  QTreeWidget *mTreeWidget;
69  QSplitter *mSplitter;
70  KTextEdit *mDescription;
71  QPushButton *mConfigure;
72 };
73 
74 #endif // CONFIGUREAGENTSWIDGET_H
ConfigureAgentsWidget::doResetToDefaultsOther
void doResetToDefaultsOther()
Definition: configureagentswidget.cpp:220
QTreeWidget
ConfigureAgentsWidget::ConfigureAgentsWidget
ConfigureAgentsWidget(QWidget *parent=0)
Definition: configureagentswidget.cpp:43
QWidget
ConfigureAgentsWidget::doLoadFromGlobalSettings
void doLoadFromGlobalSettings()
Definition: configureagentswidget.cpp:205
ConfigureAgentsWidget::helpAnchor
QString helpAnchor() const
Definition: configureagentswidget.cpp:200
ConfigureAgentsWidget::save
void save()
Definition: configureagentswidget.cpp:188
QTreeWidgetItem
ConfigureAgentsWidget
Definition: configureagentswidget.h:28
ConfigureAgentsWidget::changed
void changed()
ConfigureAgentsWidget::~ConfigureAgentsWidget
~ConfigureAgentsWidget()
Definition: configureagentswidget.cpp:82
KTextEdit
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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