25 #include <tdeaboutdata.h>
26 #include <tdeapplication.h>
28 #include <tdelocale.h>
29 #include <tdecmdlineargs.h>
31 #include <calendar/plugin.h>
35 int main(
int argc,
char **argv)
37 TDEAboutData aboutData(
"korgplugins",I18N_NOOP(
"KOrgPlugins"),
"0.1");
38 TDECmdLineArgs::init(argc,argv,&aboutData);
42 TDETrader::OfferList plugins = KOCore::self()->availablePlugins();
43 TDETrader::OfferList::ConstIterator it;
44 for(it = plugins.begin(); it != plugins.end(); ++it) {
45 kdDebug(5850) <<
"Plugin: " << (*it)->desktopEntryName() <<
" ("
46 << (*it)->name() <<
")" << endl;
47 KOrg::Plugin *p = KOCore::self()->loadPlugin(*it);
49 kdDebug(5850) <<
"Plugin loading failed." << endl;
51 kdDebug(5850) <<
"PLUGIN INFO: " << p->info() << endl;
55 plugins = KOCore::self()->availablePrintPlugins();
56 for(it = plugins.begin(); it != plugins.end(); ++it) {
57 kdDebug(5850) <<
"Print plugin: " << (*it)->desktopEntryName() <<
" ("
58 << (*it)->name() <<
")" << endl;
61 kdDebug(5850) <<
"Print plugin loading failed." << endl;
63 kdDebug(5850) <<
"PRINT PLUGIN INFO: " << p->
info() << endl;
67 plugins = KOCore::self()->availableParts();
68 for(it = plugins.begin(); it != plugins.end(); ++it) {
69 kdDebug(5850) <<
"Part: " << (*it)->desktopEntryName() <<
" ("
70 << (*it)->name() <<
")" << endl;
71 KOrg::Part *p = KOCore::self()->loadPart(*it,0);
73 kdDebug(5850) <<
"Part loading failed." << endl;
75 kdDebug(5850) <<
"PART INFO: " << p->
info() << endl;
79 plugins = KOCore::self()->availableCalendarDecorations();
80 for(it = plugins.begin(); it != plugins.end(); ++it) {
81 kdDebug(5850) <<
"CalendarDecoration: " << (*it)->desktopEntryName() <<
" ("
82 << (*it)->name() <<
")" << endl;
85 kdDebug(5850) <<
"Calendar decoration loading failed." << endl;
87 kdDebug(5850) <<
"CALENDAR DECORATION INFO: " << p->info() << endl;
This class provides the interface for a date dependent decoration.
Base class for KOrganizer printing classes.
virtual TQString info()=0
Returns long description of print format.