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

NepomukDaemons

nepomukcore.h

Go to the documentation of this file.
00001 /* This file is part of the KDE Project
00002    Copyright (c) 2007 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 _NEPOMUK_CORE_H_
00020 #define _NEPOMUK_CORE_H_
00021 
00022 #include <Soprano/Server/ServerCore>
00023 #include "repository.h"
00024 
00025 #include <QtCore/QStringList>
00026 
00027 namespace Nepomuk {
00028     
00029     class Core : public Soprano::Server::ServerCore
00030     {
00031         Q_OBJECT
00032     
00033     public:
00034         Core( QObject* parent = 0 );
00035         ~Core();
00036     
00040         Soprano::Model* model( const QString& name );
00041 
00045         void init();
00046 
00052         bool initialized() const;
00053 
00054     public Q_SLOTS:
00055         void optimize( const QString& repoName );
00056 
00057     Q_SIGNALS:
00058         void initializationDone( bool success );
00059 
00060     private Q_SLOTS:
00061         void slotRepositoryOpened( Repository* repo, bool success );
00062 
00063     private:
00067         Soprano::Model* createModel( const QList<Soprano::BackendSetting>& settings );
00068         void createRepository( const QString& name );
00069 
00070         RepositoryMap m_repositories;
00071 
00072         // initialization
00073         QStringList m_openingRepositories;
00074         QString m_currentRepoName;
00075 
00076         // true if one of the repos could not be opened
00077         bool m_failedToOpenRepository;
00078     };
00079 }
00080 
00081 #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.7
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