kdeprint_management_module.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#include "kxmlcommandselector.h"
00022
#include "kmconfigdialog.h"
00023
#include "kmwizard.h"
00024
#include "kmfactory.h"
00025
#include "kmmanager.h"
00026
#include "kmprinter.h"
00027
#include "kmmainview.h"
00028
00029
#include <kmessagebox.h>
00030
#include <kdialogbase.h>
00031
#include <klocale.h>
00032
00033
extern "C"
00034 {
00035
int add_printer_wizard(
QWidget *parent)
00036 {
00037
return kdeprint_management_add_printer_wizard( parent );
00038 }
00039
00040
bool config_dialog(
QWidget *parent)
00041 {
00042 KMConfigDialog dlg(parent);
00043
return dlg.exec();
00044 }
00045
00046
QString select_command(
QWidget* parent )
00047 {
00048 KDialogBase dlg( parent, 0,
true, i18n(
"Select Command" ), KDialogBase::Ok|KDialogBase::Cancel );
00049 KXmlCommandSelector *xmlSel =
new KXmlCommandSelector(
false, &dlg,
"CommandSelector", &dlg );
00050 dlg.setMainWidget( xmlSel );
00051
if ( dlg.exec() )
00052
return xmlSel->command();
00053
return QString::null;
00054 }
00055 }
00056
This file is part of the documentation for kdeprint Library Version 3.3.0.