23#include <tdeapplication.h>
24#include <tdefiledialog.h>
25#include <tdeaboutdata.h>
26#include <tdecmdlineargs.h>
30#include <tqfileinfo.h>
31#include <tqstringlist.h>
35#include "taskbartest.h"
37static const char *description =
38 I18N_NOOP(
"A TDE Eye-candy Application");
40static const char *version =
"0.17";
42static TDECmdLineOptions options[] =
45 {
"+file", I18N_NOOP(
"A required argument 'file'"), 0 },
51int 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;
A generic API for task managers.
int numberOfDesktops() const
Returns the number of virtual desktops.
int currentDesktop() const
Returns the number of the current desktop.
TaskList tasks() const
Returns a list of all current tasks.
A dynamic interface to a task (main window).
void restore()
Restore the main window of the task (if it was iconified).