25 #include <tqstringlist.h>
26 #include <tqvaluelist.h>
45 typedef TQValueList<KPluginInfo*> List;
80 KPluginInfo(
const TQString & filename,
const char* resource = 0 );
123 static KPluginInfo::List fromServices(
const KService::List & services,
TDEConfig * config = 0,
const TQString & group = TQString::null );
131 static KPluginInfo::List fromFiles(
const TQStringList & files,
TDEConfig * config = 0,
const TQString & group = TQString::null );
138 static KPluginInfo::List fromKPartsInstanceName(
const TQString &,
TDEConfig * config = 0,
const TQString & group = TQString::null );
143 bool isHidden()
const;
153 virtual void setPluginEnabled(
bool enabled );
163 virtual bool isPluginEnabled()
const;
170 bool isPluginEnabledByDefault()
const;
179 TQVariant property(
const TQString & key )
const;
188 TQVariant operator[](
const TQString & key )
const;
193 const TQString & name()
const;
198 const TQString & comment()
const;
203 const TQString & icon()
const;
208 const TQString & specfile()
const;
213 const TQString & author()
const;
218 const TQString & email()
const;
223 const TQString & category()
const;
229 const TQString & pluginName()
const;
234 const TQString & version()
const;
239 const TQString & website()
const;
245 const TQString & license()
const;
251 const TQStringList & dependencies()
const;
262 KService::Ptr service()
const;
268 const TQValueList<KService::Ptr> & kcmServices()
const;
275 void setConfig(
TDEConfig * config,
const TQString & group );
287 const TQString & configgroup()
const;
308 virtual void defaults();
314 class KPluginInfoPrivate;
315 KPluginInfoPrivate * d;
Information about a plugin.