2 #include <tdecmdlineargs.h>
3 #include <tdeapplication.h>
4 #include <tdemessagebox.h>
8 static TDECmdLineOptions options[] =
10 {
"tdeconfig", I18N_NOOP(
"Configure TDE Print"), 0 },
11 {
"serverconfig", I18N_NOOP(
"Configure print server"), 0 },
15 extern "C" TDE_EXPORT
int kdemain(
int argc,
char *argv[])
17 TDECmdLineArgs::init(argc, argv,
"kaddprinterwizard",
18 I18N_NOOP(
"Start the add printer wizard"),
20 TDECmdLineArgs::addCmdLineOptions(options);
22 TDEGlobal::locale()->setMainCatalogue(
"tdelibs");
25 TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
26 bool doConfig = args->isSet(
"tdeconfig");
27 bool doSrvConfig = args->isSet(
"serverconfig");
30 KMManager::self()->invokeOptionsDialog();
32 KMManager::self()->configureServer();
33 else if (KMManager::self()->addPrinterWizard() == -1)
35 KMessageBox::error(0, KMManager::self()->errorMsg().prepend(
"<qt>").append(
"</qt>"));