KDECore
kservicetypeprofile.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> 00003 Copyright 2007 David Faure <faure@kde.org> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef __kservicetypeprofile_h__ 00022 #define __kservicetypeprofile_h__ 00023 00024 #include <QtCore/QMap> // KDE5: remove 00025 #include <QtCore/QString> 00026 #include <QtCore/QList> 00027 00028 #include <kservicetypetrader.h> 00029 00030 00044 namespace KServiceTypeProfile 00045 { 00054 KDECORE_EXPORT void writeServiceTypeProfile( const QString& serviceType, 00055 const KService::List& services, 00056 const KService::List& disabledServices = KService::List() ); 00057 00058 00066 KDECORE_EXPORT void deleteServiceTypeProfile( const QString& serviceType ); 00067 00074 KDECORE_EXPORT void setConfigurationMode(); 00078 KDECORE_EXPORT bool configurationMode(); 00079 00083 KDECORE_EXPORT bool hasProfile( const QString& serviceType ); 00084 00089 void clearCache(); 00090 00091 } 00092 00093 #endif