diff options
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h new file mode 100644 index 0000000..4b89262 --- /dev/null +++ b/src/mainwindow.h @@ -0,0 +1,36 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QMainWindow> +#include <QDebug> +#include <QDesktopWidget> +#include <QTreeWidget> +#include "cups/cups.h" + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(char *argv[], QWidget *parent = 0); + ~MainWindow(); + +private slots: + void on_printerList_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous); + void on_buttonCancel_clicked(); + void on_buttonPrint_clicked(); + +private: + Ui::MainWindow *ui; + void initializeUI(); + cups_dest_t *dests; + int num_dests; + const char * const user; + const char * const file; +}; + +#endif // MAINWINDOW_H |