24 #ifndef KCMODULEINFO_H 25 #define KCMODULEINFO_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 KDE_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 KCModuleInfoPrivate;
290 KCModuleInfoPrivate *d;
294 #endif // KCMODULEINFO_H void setDocPath(const TQString &p)
Sets the object's documentation path.
void setHandle(const TQString &handle)
Sets the factory name.
KService::Ptr service() const
TQString fileName() const
void setLibrary(const TQString &lib)
Set the object's library.
TQString moduleName() const
void setName(const TQString &name)
Sets the object's name.
void setIsHiddenByDefault(bool isHiddenByDefault)
void setWeight(int weight)
Sets the object's weight property which determines in what order modules will be displayed.
void setNeedsRootPrivileges(bool needsRootPrivileges)
Toggles whether the represented module needs root privileges.
const TQStringList & keywords() const
A class that provides information about a KCModule.
void setIcon(const TQString &icon)
Sets the object's icon.
void setComment(const TQString &comment)
Sets the object's name.
void setKeywords(const TQStringList &keyword)
Sets the object's keywords.