21#include <tdeapplication.h>
24#include <tdecmdlineargs.h>
25#include <tdeaboutdata.h>
27#include "downloaddialog.h"
29static const TDECmdLineOptions op[] =
31 {
"type <type>", I18N_NOOP(
"Display only media of this type"), 0},
32 {
"+[providerlist]", I18N_NOOP(
"Provider list to use"), 0},
36int main(
int argc,
char **argv)
38 TDEAboutData about(
"tdehotnewstuff",
"TDEHotNewStuff",
"0.2");
41 TDECmdLineArgs::init(argc, argv, &about);
42 TDECmdLineArgs::addCmdLineOptions(op);
43 args = TDECmdLineArgs::parsedArgs();
48 if(args->isSet(
"type")) d.
setType(args->getOption(
"type"));
49 if(args->count() == 1) d.setProviderList(args->arg(0));
Common download dialog for data browsing and installation.
void setType(TQString type)
Restricts the display of available data to a certain data type.