kservicetype.cpp
30 template TQDataStream& operator>> <TQString, TQVariant>(TQDataStream&, TQMap<TQString, TQVariant>&);
31 template TQDataStream& operator<< <TQString, TQVariant>(TQDataStream&, const TQMap<TQString, TQVariant>&);
236 static void addUnique(KService::List &lst, TQDict<KService> &dict, const KService::List &newLst, bool lowPrio)
261 kdWarning(7009) << "KServiceType::offers : servicetype " << _servicetype << " not found" << endl;
306 KServiceType * servAllFiles = KServiceTypeFactory::self()->findServiceTypeByName( "all/allfiles" );
338 kdWarning(7009) << "'" << desktopEntryPath() << "' specifies undefined mimetype/servicetype '"<< parentSt << "'" << endl;
Represent a mime type, like "text/plain", and the data that is associated with it.
Definition: kmimetype.h:48
A service type is the generic notion for a mimetype, a type of service instead of a type of file.
Definition: kservicetype.h:46
TQString parentMimeType() const
If this mimetype inherits from ("is also") another mimetype, return the name of the parent.
Definition: kmimetype.cpp:561
TQString parentServiceType() const
If this service type inherits from another service type, return the name of the parent.
Definition: kservicetype.cpp:151
virtual TQStringList propertyNames() const
Returns the list of all properties of this service type.
Definition: kservicetype.cpp:194
virtual TQVariant property(const TQString &_name) const
Returns the requested property.
Definition: kservicetype.cpp:174
static KService::List offers(const TQString &_servicetype)
Returns all services supporting the given servicetype name.
Definition: kservicetype.cpp:251
TQString desktopEntryPath() const
Returns the path to the location where the service desktop entry is stored.
Definition: kservice.h:174
KServiceType(const TQString &_fullpath, const TQString &_name, const TQString &_icon, const TQString &_comment)
Constructor.
Definition: kservicetype.cpp:109
bool inherits(const TQString &servTypeName) const
Checks whether this service type is or inherits from servTypeName.
Definition: kservicetype.cpp:157
static List allServiceTypes()
Returns a list of all the supported servicetypes.
Definition: kservicetype.cpp:320
virtual TQVariant::Type propertyDef(const TQString &_name) const
Returns the type of the property with the given _name.
Definition: kservicetype.cpp:210
static Ptr serviceType(const TQString &_name)
Returns a pointer to the servicetype '_name' or 0L if the service type is unknown.
Definition: kservicetype.cpp:230
TQString desktopEntryPath() const
Returns the relative path to the desktop entry file responsible for this servicetype.
Definition: kservicetype.h:114