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 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 TDECModuleInfoPrivate;
290 TDECModuleInfoPrivate *d;
294 #endif // TDECMODULEINFO_H
const TQStringList & keywords() const
void setComment(const TQString &comment)
Sets the object's name.
TQString fileName() const
void setName(const TQString &name)
Sets the object's name.
void setLibrary(const TQString &lib)
Set the object's library.
void setIcon(const TQString &icon)
Sets the object's icon.
KService::Ptr service() const
void setNeedsRootPrivileges(bool needsRootPrivileges)
Toggles whether the represented module needs root privileges.
void setIsHiddenByDefault(bool isHiddenByDefault)
void setWeight(int weight)
Sets the object's weight property which determines in what order modules will be displayed.
void setDocPath(const TQString &p)
Sets the object's documentation path.
void setHandle(const TQString &handle)
Sets the factory name.
TQString moduleName() const