dlgerror.h

Go to the documentation of this file.
00001 // OSB library ************************************************ -*- C++ -*-
00009 /*
00010   AUTHOR(S): Stephan Broennimann (vb)
00011 
00012   RCS information
00013    $Name: OSB_060808 $
00014    $Revision: 1.2 $
00015 
00016   License
00017    OSB rating and billing library for communication networks
00018    Copyright (C) 2004, 2005, 2006  OSB systems
00019 
00020    This file may be distributed and/or modify under the terms of the
00021    GNU General Public License (GPL) as published by the Free Software
00022    Foundation which is provided in the file LICENSE.GPL included in the
00023    packaging of this file.
00024 
00025    The file is distributed in the hope that it will be useful, but WITHOUT
00026    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00027    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00028    for more details.
00029 
00030    Holders of a OSB Commercial License may use this file under the terms
00031    and conditions of this commercial license.
00032  */
00033 #ifndef _DLGERROR_H_
00034 #define _DLGERROR_H_
00035 
00036 // ************************************************************************
00037 // included header files
00038 // + standard includes
00039 
00040 // + libraries
00041 #include <qdialog.h>
00042 
00043 // + local headers
00044 
00045 // ************************************************************************
00046 // class declarations
00047 namespace OSB_LIB {
00048     class OsbError;
00049     class OsbErrors;
00050 }
00051 // Qt
00052 class QGridLayout;
00053 class QVBoxLayout;
00054 class QHBoxLayout;
00055 class QPushButton;
00056 class QLabel;
00057 class QFrame;
00058 
00059 // ************************************************************************
00060 // namespace extensions
00061 namespace OSB_GUI {
00062 
00063 // ************************************************************************
00064 // class definitions
00068     class DlgErrors : public QDialog {
00069         Q_OBJECT                        // for vim ->;
00070     public:
00072         DlgErrors(
00073             const QString& caption,
00074                   QWidget* parent,
00075             const char*    name     = "dlgErrors",
00076                   bool     modal    = false,
00077                   WFlags   flags    = 0
00078         );
00079 
00081         int exec(const OSB_LIB::OsbErrors& errors);
00082 
00084         void add(const OSB_LIB::OsbError& error);
00085 
00086     protected slots:
00088         void languageChange();
00089 
00090     private:
00092         QLabel* tlCode_;
00094         QLabel* tlText_;
00096         QFrame* linePb_;
00098         QPushButton* pbOk_;
00099 
00101         QVBoxLayout* loDialog_;
00103         QGridLayout* loErrors_;
00105         QHBoxLayout* loPb_;
00106     };                                  // DlgErrors
00107 }                                       // namespace OSB_GUI
00108 #endif                                  // #ifndef _DLGERROR_H_

Generated on Sat Sep 2 14:17:36 2006 for OSB Library by  doxygen 1.4.7