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 #include <qregexp.h>
00027
00028
00029 class YQPkgList;
00030
00031
00037 class YQPkgChangesDialog : public QDialog
00038 {
00039 Q_OBJECT
00040
00041 public:
00042
00055 static bool showChangesDialog( const QString & message,
00056 const QString & acceptButtonLabel,
00057 const QString & rejectButtonLabel = QString::null,
00058 bool showIfListEmpty = false );
00059
00060
00074 static bool showChangesDialog( const QString & message,
00075 const QRegExp & regexp,
00076 const QString & acceptButtonLabel,
00077 const QString & rejectButtonLabel = QString::null,
00078 bool showIfListEmpty = false );
00079
00085 virtual QSize sizeHint () const;
00086
00087 protected:
00088
00100 YQPkgChangesDialog( QWidget * parent,
00101 const QString & message,
00102 const QString & acceptButtonLabel,
00103 const QString & rejectButtonLabel = QString::null );
00104
00111 void filter( bool byAuto = true,
00112 bool byApp = false,
00113 bool byUser = false );
00114
00121 void filter( const QRegExp & regexp,
00122 bool byAuto = true,
00123 bool byApp = false,
00124 bool byUser = false );
00125
00130 bool isEmpty() const;
00131
00132
00133
00134
00135 YQPkgList * _pkgList;
00136 };
00137
00138
00139 #endif // ifndef YQPkgChangesDialog_h