24 #ifndef TDECMODULEINFO_H
25 #define TDECMODULEINFO_H
118 const TQStringList &
keywords()
const {
return _keywords; }
126 TQString factoryName()
const;
137 KService::Ptr
service()
const {
return _service; }
147 TQString
icon()
const {
return _icon; }
152 TQString docPath()
const;
162 TQString handle()
const;
173 bool needsRootPrivileges()
const;
179 bool isHiddenByDefault() const TDE_DEPRECATED;
187 bool needsTest() const;
196 void setKeywords(const TQStringList &keyword) { _keywords = keyword; }
202 void setName(
const TQString &name) { _name = name; }
208 void setComment(
const TQString &comment) { _comment = comment; }
214 void setIcon(
const TQString &icon) { _icon = icon; }
226 void setHandle(
const TQString &handle) { _handle = handle; }
242 void setNeedsTest(
bool val );
250 { _needsRootPrivileges = needsRootPrivileges; }
256 { _isHiddenByDefault = isHiddenByDefault; }
275 void init(KService::Ptr s);
280 TQStringList _keywords;
281 TQString _name, _icon, _lib, _handle, _fileName, _doc, _comment;
282 bool _needsRootPrivileges : 1;
283 bool _isHiddenByDefault : 1;
287 KService::Ptr _service;
289 class TDECModuleInfoPrivate;
290 TDECModuleInfoPrivate *d;
A class that provides information about a TDECModule.
void setComment(const TQString &comment)
Sets the object's name.
void setIsHiddenByDefault(bool isHiddenByDefault)
void setIcon(const TQString &icon)
Sets the object's icon.
void setLibrary(const TQString &lib)
Set the object's library.
void setWeight(int weight)
Sets the object's weight property which determines in what order modules will be displayed.
void setHandle(const TQString &handle)
Sets the factory name.
void setName(const TQString &name)
Sets the object's name.
TQString fileName() const
KService::Ptr service() const
TQString moduleName() const
const TQStringList & keywords() const
void setDocPath(const TQString &p)
Sets the object's documentation path.
void setNeedsRootPrivileges(bool needsRootPrivileges)
Toggles whether the represented module needs root privileges.