~ubuntu-branches/ubuntu/saucy/print-manager/saucy-proposed

« back to all changes in this revision

Viewing changes to printqueue/PrintQueueInterface.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-08-21 12:30:49 UTC
  • mto: (1.3.2)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20120821123049-c8uky0a9gmfkck87
Tags: upstream-0.1.0+git20120821
ImportĀ upstreamĀ versionĀ 0.1.0+git20120821

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2010 Daniel Nicoletti <dantti85-pk@yahoo.com.br>        *
 
2
 *   Copyright (C) 2010 Daniel Nicoletti <dantti12@gmail.com>              *
3
3
 *                                                                         *
4
4
 *   This program is free software; you can redistribute it and/or modify  *
5
5
 *   it under the terms of the GNU General Public License as published by  *
25
25
#include <KCupsPrinter.h>
26
26
 
27
27
#include <QtDBus/QDBusConnection>
28
 
#include <QtCore/QTimer>
29
28
#include <QtGui/QLayout>
30
29
#include <KWindowSystem>
31
30
#include <KDialog>
46
45
        kDebug() << "unable to register service interface to dbus";
47
46
        return;
48
47
    }
49
 
 
50
 
    // setup the timer that updates the UIs
51
 
    m_updateUi = new QTimer(this);
52
 
    m_updateUi->setInterval(1000);
53
 
    m_updateUi->start();
54
48
}
55
49
 
56
50
PrintQueueInterface::~PrintQueueInterface()
86
80
 
87
81
        if (found) {
88
82
            PrintQueueUi *ui = new PrintQueueUi(printer);
89
 
            connect(m_updateUi, SIGNAL(timeout()),
90
 
                    ui, SLOT(update()));
91
83
            connect(ui, SIGNAL(finished()),
92
84
                    this, SLOT(RemoveQueue()));
93
85
            ui->show();