KDECore
kserviceoffer.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
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
00137