00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef YQPkgChangesDialog_h
00023 #define YQPkgChangesDialog_h
00024
00025 #include <qdialog.h>
00026
00027
00028 class YQPkgList;
00029
00030
00036 class YQPkgChangesDialog : public QDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00041
00055 static bool showChangesDialog( const QString & message,
00056 const QString & acceptButtonLabel,
00057 const QString & rejectButtonLabel = QString::null,
00058 bool showIfListEmpty = false );
00059
00065 virtual QSize sizeHint () const;
00066
00067 protected:
00068
00080 YQPkgChangesDialog( QWidget * parent,
00081 const QString & message,
00082 const QString & acceptButtonLabel,
00083 const QString & rejectButtonLabel = QString::null );
00084
00091 void filter( bool byAuto = true,
00092 bool byApp = false,
00093 bool byUser = false );
00094
00099 bool isEmpty() const;
00100
00101
00102
00103
00104 YQPkgList * _pkgList;
00105 };
00106
00107
00108 #endif // ifndef YQPkgChangesDialog_h