~ubuntu-branches/ubuntu/jaunty/kpackagekit/jaunty

« back to all changes in this revision

Viewing changes to Updater/KpkDistroUpgrade.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2009-02-24 11:16:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090224111602-cskv8iurzafe9x0x
Tags: 0.4-0ubuntu1
* New upstream release
* Fixed kubuntu_01_editsources.patches to apply correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2009 by Daniel Nicoletti                                *
 
3
 *   dantti85-pk@yahoo.com.br                                              *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef KPK_DISTRO_UPGRADE_H
 
22
#define KPK_DISTRO_UPGRADE_H
 
23
 
 
24
#include <QPackageKit>
 
25
 
 
26
#include <KTitleWidget>
 
27
#include <KUrlLabel>
 
28
#include <KProgressDialog>
 
29
 
 
30
using namespace PackageKit;
 
31
 
 
32
class KpkDistroUpgrade : public KTitleWidget
 
33
{
 
34
Q_OBJECT
 
35
public:
 
36
    KpkDistroUpgrade(QWidget *parent = 0);
 
37
    ~KpkDistroUpgrade();
 
38
 
 
39
    void setName(const QString &name);
 
40
 
 
41
private slots:
 
42
    void startDistroUpgrade();
 
43
//     void distroUpgrade(PackageKit::Client::UpgradeType type, const QString& name, const QString& description);
 
44
 
 
45
    void distroUpgradeError(QProcess::ProcessError);
 
46
    void distroUpgradeFinished(int exitCode, QProcess::ExitStatus exitStatus);
 
47
 
 
48
private:
 
49
    KUrlLabel *m_distroUpgradeUL;
 
50
    QProcess *m_distroUpgradeProcess;
 
51
    KProgressDialog *m_distroUpgradeDialog;
 
52
};
 
53
 
 
54
#endif