23 #include <tdeapplication.h> 24 #include <tdefiledialog.h> 25 #include <tdeaboutdata.h> 26 #include <tdecmdlineargs.h> 27 #include <tdelocale.h> 28 #include <tdeconfig.h> 30 #include <tqfileinfo.h> 31 #include <tqstringlist.h> 35 #include "taskbartest.h" 37 static const char *description =
38 I18N_NOOP(
"A TDE Eye-candy Application");
40 static const char *version =
"0.17";
42 static TDECmdLineOptions options[] =
45 {
"+file", I18N_NOOP(
"A required argument 'file'"), 0 },
51 int main(
int argc,
char **argv)
53 TDEAboutData about(
"karamba", I18N_NOOP(
"karamba"), version, description,
54 TDEAboutData::License_GPL,
"(C) 2003 Hans Karlsson", 0, 0,
"karlsson.h@home.se");
55 about.addAuthor(
"Hans Karlsson", 0,
"karlsson.h@home.se" );
56 TDECmdLineArgs::init(argc, argv, &about);
57 TDECmdLineArgs::addCmdLineOptions( options );
62 TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
170 TaskList list = t.
tasks();
173 for ( task = list.first(); task; task = list.next() ) {
174 cout << task->name().latin1() << endl;
int currentDesktop() const
Returns the number of the current desktop.
A generic API for task managers.
TaskList tasks() const
Returns a list of all current tasks.
int numberOfDesktops() const
Returns the number of virtual desktops.
void restore()
Restore the main window of the task (if it was iconified).
A dynamic interface to a task (main window).