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

KDECore

kserviceoffer.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2000 Torben Weis <weis@kde.org>
00003    Copyright (C) 2006 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 version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KSERVICEOFFER_H
00021 #define KSERVICEOFFER_H
00022 
00023 #include <QtCore/QString>
00024 #include <kservice.h>
00025 
00038 class KDECORE_EXPORT KServiceOffer // exported for kbuildsycoca
00039 {
00040 public:
00044   KServiceOffer();
00045 
00050   KServiceOffer( const KServiceOffer& );
00051 
00063   KServiceOffer( const KService::Ptr& service,
00064                  int pref, int mimeTypeInheritanceLevel, bool allowedAsDefault );
00065 
00066   ~KServiceOffer();
00067 
00072   bool operator< ( const KServiceOffer& ) const;
00073 
00077   KServiceOffer& operator=( const KServiceOffer& other );
00078 
00084   bool allowAsDefault() const;
00085 
00091   int preference() const;
00092 
00098   void setPreference( int p );
00099 
00105   KService::Ptr service() const;
00106 
00112   bool isValid() const;
00113 
00118     void setMimeTypeInheritanceLevel(int level);
00119 
00124     int mimeTypeInheritanceLevel() const;
00125 
00126 private:
00127     class Private;
00128     Private * const d;
00129 };
00130 
00134 typedef QList<KServiceOffer> KServiceOfferList;
00135 
00136 #endif /* KSERVICEOFFER_H */
00137 

KDECore

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

kdelibs

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