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

« back to all changes in this revision

Viewing changes to Updater/KpkUpdate.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:
27
27
#include <KpkTransaction.h>
28
28
#include <KpkDelegate.h>
29
29
 
 
30
#include <KUrlLabel>
 
31
 
30
32
#include "ui_KpkUpdate.h"
31
33
 
 
34
class KProgressDialog;
 
35
 
32
36
using namespace PackageKit;
33
 
 
 
37
 
34
38
class KpkUpdate : public QWidget, Ui::KpkUpdate
35
39
{
36
40
Q_OBJECT
37
41
public:
38
 
    KpkUpdate( QWidget *parent=0 );
 
42
    KpkUpdate(QWidget *parent = 0);
39
43
 
40
44
signals:
41
45
    void changed(bool);
42
 
    
 
46
 
43
47
public slots:
44
48
    void load();
45
 
    void save();
 
49
    void applyUpdates();
 
50
    void refresh();
46
51
 
47
52
private slots:
48
53
    void on_updatePB_clicked();
49
54
    void on_refreshPB_clicked();
50
55
    void on_historyPB_clicked();
51
56
 
52
 
    void updateFinished(KpkTransaction::ExitStatus status);
53
 
    void refreshCacheFinished(KpkTransaction::ExitStatus status);
 
57
    void distroUpgrade(PackageKit::Client::UpgradeType type, const QString &name, const QString &description);
 
58
 
 
59
    void displayUpdates(KpkTransaction::ExitStatus status);
54
60
 
55
61
    void updateColumnsWidth(bool force = false);
56
62
    void on_packageView_pressed(const QModelIndex &index);
57
 
    void updateDetail(PackageKit::Client::UpdateInfo info);
58
 
    
 
63
 
59
64
    void checkEnableUpdateButton();
60
65
    void errorCode(PackageKit::Client::ErrorType error, const QString &details);
61
66
 
67
72
    Client::Actions m_actions;
68
73
 
69
74
protected:
70
 
    virtual void resizeEvent ( QResizeEvent * event );
71
 
    virtual bool event ( QEvent * event );
 
75
    virtual void resizeEvent(QResizeEvent *event);
 
76
    virtual bool event(QEvent *event);
72
77
};
73
78
 
74
79
#endif