• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

NepomukDaemons

servicecontroller.h

Go to the documentation of this file.
00001 /* This file is part of the KDE Project
00002    Copyright (c) 2008 Sebastian Trueg <trueg@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef _SERVICE_CONTROLLER_H_
00020 #define _SERVICE_CONTROLLER_H_
00021 
00022 #include <QtCore/QObject>
00023 #include <KService>
00024 
00025 namespace Nepomuk {
00026     class ServiceController : public QObject
00027     {
00028         Q_OBJECT
00029 
00030     public:
00031         ServiceController( KService::Ptr service, QObject* parent );
00032         ~ServiceController();
00033 
00034         KService::Ptr service() const;
00035 
00040         QString name() const;
00041 
00045         QStringList dependencies() const;
00046 
00047         bool autostart() const;
00048         bool startOnDemand() const;
00049         bool runOnce() const;
00050 
00051         void setAutostart( bool enable );
00052 
00058         bool start();
00059         void stop();
00060 
00061         bool isRunning() const;
00062         bool isInitialized() const;
00063 
00072         bool waitForInitialized( int timeout = 30000 );
00073 
00074     Q_SIGNALS:
00079         void serviceInitialized( ServiceController* );
00080         
00081     private Q_SLOTS:
00082         void slotProcessFinished( bool );
00083         void slotServiceOwnerChanged( const QString& serviceName,
00084                                       const QString&,
00085                                       const QString& newOwner );
00086         void slotServiceInitialized( bool success );
00087         
00088     private:
00089         void createServiceControlInterface();
00090 
00091         class Private;
00092         Private* const d;
00093     };
00094 }
00095 
00096 #endif

NepomukDaemons

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

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal