• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

KCMShell

  • sources
  • kde-4.14
  • kde-runtime
  • kcmshell
main.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2001 Waldo Bastian <bastian@kde.org>
3  Copyright (c) 2004 Frans Englich <frans.englich@telia.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 
20 */
21 
22 #ifndef MAIN_H
23 #define MAIN_H
24 
25 #include <KApplication>
26 #include <KCMultiDialog>
27 #include <KPageDialog>
28 
32 class KCMShell : public KApplication
33 {
34  Q_OBJECT
35 
36 public:
37 
44  void setServiceName(const QString &serviceName );
45 
50  void waitForExit();
51 
55  bool isRunning();
56 
57 private Q_SLOTS:
58 
61  void appExit( const QString &appId, const QString &, const QString & );
62 
63 private:
64 
69  QString m_serviceName;
70 
71 };
72 
73 
80 class KCMShellMultiDialog : public KCMultiDialog
81 {
82  Q_OBJECT
83  Q_CLASSINFO("D-Bus Interface", "org.kde.KCMShellMultiDialog")
84 
85 public:
86 
91  explicit KCMShellMultiDialog(KPageDialog::FaceType dialogFace, QWidget *parent = 0);
92 
93 public Q_SLOTS:
94 
99  virtual Q_SCRIPTABLE void activate( const QByteArray& asn_id );
100 
101 };
102 
103 // vim: sw=4 et sts=4
104 #endif // MAIN_H
KCMShell
The KApplication instance for kcmshell.
Definition: main.h:32
KApplication
QWidget
QByteArray
KCMShellMultiDialog::activate
virtual Q_SCRIPTABLE void activate(const QByteArray &asn_id)
Activate a module with id asn_id .
Definition: main.cpp:130
KCMShell::isRunning
bool isRunning()
Definition: main.cpp:101
KCMShell::setServiceName
void setServiceName(const QString &serviceName)
Sets m_serviceName basically to serviceName, and then registers with D-BUS.
Definition: main.cpp:139
KCMShellMultiDialog::KCMShellMultiDialog
KCMShellMultiDialog(KPageDialog::FaceType dialogFace, QWidget *parent=0)
Constructor.
Definition: main.cpp:121
QString
KCMShell::waitForExit
void waitForExit()
Waits until the last instance of kcmshell with the same module as this one exits, and then exits...
Definition: main.cpp:145
KCMultiDialog
KCMShellMultiDialog
Essentially a plain KCMultiDialog, but has the additional functionality of allowing it to be told to ...
Definition: main.h:80
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCMShell

Skip menu "KCMShell"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

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