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

Nepomuk

dbustypes.h
Go to the documentation of this file.
00001 /*
00002    This file is part of the Nepomuk KDE project.
00003    Copyright (C) 2011 Sebastian Trueg <trueg@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) version 3, or any
00009    later version accepted by the membership of KDE e.V. (or its
00010    successor approved by the membership of KDE e.V.), which shall
00011    act as a proxy defined in Section 6 of version 3 of the license.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Lesser General Public License for more details.
00017 
00018    You should have received a copy of the GNU Lesser General Public
00019    License along with this library.  If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 
00022 #ifndef DBUSTYPES_H
00023 #define DBUSTYPES_H
00024 
00025 #include <QtCore/QMetaType>
00026 #include <QtCore/QHash>
00027 #include <QtCore/QString>
00028 #include <QtCore/QUrl>
00029 #include <QtDBus/QDBusVariant>
00030 #include <QtDBus/QDBusArgument>
00031 
00032 // #include "simpleresource.h"
00033 // #include "nepomukdatamanagement_export.h"
00034 #include "nepomuk_export.h"
00035 
00036 //CAUTION: Q_DECLARE_METATYPE doesn't accept template arguments like QHash<T, T>
00037 typedef QHash<QString, QString> __nepomuk_QHashQStringQString;
00038 Q_DECLARE_METATYPE( __nepomuk_QHashQStringQString )
00039 
00040 namespace Nepomuk {
00041     namespace DBus {
00042         QString NEPOMUK_EXPORT convertUri(const QUrl& uri);
00043         QStringList NEPOMUK_EXPORT convertUriList(const QList<QUrl>& uris);
00044 
00046         NEPOMUK_EXPORT QVariant resolveDBusArguments(const QVariant& v);
00047         NEPOMUK_EXPORT QVariantList resolveDBusArguments(const QVariantList& l);
00048 
00050         QVariantList normalizeVariantList(const QVariantList& l);
00051 
00052         NEPOMUK_EXPORT void registerDBusTypes();
00053     }
00054 }
00055 
00056 QDBusArgument& operator<<( QDBusArgument& arg, const QUrl& url );
00057 const QDBusArgument& operator>>( const QDBusArgument& arg, QUrl& url );
00058 
00059 #endif // DBUSTYPES_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:32:52 by doxygen 1.8.0 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.8.3 API Reference

Skip menu "kdelibs-4.8.3 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