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

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • kdecore
  • services
kserviceoffer.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Torben Weis <weis@kde.org>
3  Copyright (C) 2006 David Faure <faure@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KSERVICEOFFER_H
21 #define KSERVICEOFFER_H
22 
23 #include <QtCore/QString>
24 #include <kservice.h>
25 
38 class KDECORE_EXPORT KServiceOffer // exported for kbuildsycoca
39 {
40 public:
44  KServiceOffer();
45 
50  KServiceOffer( const KServiceOffer& );
51 
63  KServiceOffer( const KService::Ptr& service,
64  int pref, int mimeTypeInheritanceLevel, bool allowedAsDefault );
65 
66  ~KServiceOffer();
67 
72  bool operator< ( const KServiceOffer& ) const;
73 
77  KServiceOffer& operator=( const KServiceOffer& other );
78 
84  bool allowAsDefault() const;
85 
91  int preference() const;
92 
98  void setPreference( int p );
99 
105  KService::Ptr service() const;
106 
112  bool isValid() const;
113 
118  void setMimeTypeInheritanceLevel(int level);
119 
124  int mimeTypeInheritanceLevel() const;
125 
126 private:
127  class Private;
128  Private * const d;
129 };
130 
134 typedef QList<KServiceOffer> KServiceOfferList;
135 
136 #endif /* KSERVICEOFFER_H */
137 
KSharedPtr< KService >
operator<
bool operator<(const KEntryKey &k1, const KEntryKey &k2)
Compares two KEntryKeys (needed for QMap).
Definition: kconfigdata.h:124
kservice.h
KServiceOffer
Holds the user's preference of a service.
Definition: kserviceoffer.h:38
KServiceOfferList
QList< KServiceOffer > KServiceOfferList
A list of weighted offers.
Definition: kserviceoffer.h:134
QList
Definition: kaboutdata.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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