Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

YQPkgChangesDialog.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YQPkgChangesDialog.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
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     // Data members
00103 
00104     YQPkgList *         _pkgList;
00105 };
00106 
00107 
00108 #endif // ifndef YQPkgChangesDialog_h

Generated on Fri Oct 14 19:03:46 2005 for yast2-qt by doxygen 1.3.6