• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Nepomuk

  • nepomuk
  • core
nepomukservice.h
Go to the documentation of this file.
1/* This file is part of the KDE Project
2 Copyright (c) 2008 Sebastian Trueg <trueg@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2 as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
17*/
18
19#ifndef _NEPOMUK_SERVICE_H_
20#define _NEPOMUK_SERVICE_H_
21
22#include <QtCore/QObject>
23#include "nepomuk_export.h"
24
25namespace Soprano {
26 class Model;
27}
28
29namespace Nepomuk {
87 class NEPOMUK_EXPORT Service : public QObject
88 {
89 Q_OBJECT
90
91 public:
101 Service( QObject* parent = 0, bool delayedInitialization = false );
102
106 virtual ~Service();
107
108 protected:
113 Soprano::Model* mainModel();
114
127 void setServiceInitialized( bool success );
128
129 private:
130 class Private;
131 Private* const d;
132 };
133}
134
141#define NEPOMUK_EXPORT_SERVICE( classname, libname ) \
142K_PLUGIN_FACTORY(factory, registerPlugin<classname>();) \
143K_EXPORT_PLUGIN(factory(#libname))
144
145#endif
Nepomuk::Service
Base class for all Nepomuk services.
Definition: nepomukservice.h:88
Nepomuk::Service::mainModel
Soprano::Model * mainModel()
Nepomuk::Service::~Service
virtual ~Service()
Destructor.
Nepomuk::Service::setServiceInitialized
void setServiceInitialized(bool success)
A Nepomuk service can make use of a warmup phase in which it is not usable yet.
Nepomuk::Service::Service
Service(QObject *parent=0, bool delayedInitialization=false)
Create a new Service.
QObject
Nepomuk
Soprano
Definition: nepomukservice.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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