Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

benchmarkinfo.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** BenchmarkInfo
00003 **
00004 ** A benchmark for Qt/Embedded
00005 **
00006 ** Copyright (C) 2004 Michael Lauer <mickey@vanille.de>
00007 ** Inspired by ZBench (C) 2002 Satoshi <af230533@im07.alpha-net.ne.jp>
00008 **
00009 ** This file may be distributed and/or modified under the terms of the
00010 ** GNU General Public License version 2 as published by the Free Software
00011 ** Foundation and appearing in the file LICENSE.GPL included in the
00012 ** packaging of this file.
00013 **
00014 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00015 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00016 **
00017 **********************************************************************/
00018 
00019 #include <qwidget.h>
00020 #include <qdialog.h>
00021 #include <qdict.h>
00022 #include <qstringlist.h>
00023 
00024 class QClipboard;
00025 class QComboBox;
00026 namespace Opie {namespace Ui {class OCheckListItem;}}
00027 class QPushButton;
00028 namespace Opie {namespace Ui {class OListView;}}
00029 
00030 class BenchmarkInfo : public QWidget
00031 {
00032     Q_OBJECT
00033 
00034 public:
00035     BenchmarkInfo( QWidget *parent = 0, const char *name = 0, int wFlags = 0 );
00036     ~BenchmarkInfo();
00037 
00038     Opie::Ui::OCheckListItem* test_alu;
00039     Opie::Ui::OCheckListItem* test_fpu;
00040     Opie::Ui::OCheckListItem* test_txt;
00041     Opie::Ui::OCheckListItem* test_gfx;
00042     Opie::Ui::OCheckListItem* test_ram;
00043 #ifndef QT_QWS_RAMSES
00044     Opie::Ui::OCheckListItem* test_sd;
00045     Opie::Ui::OCheckListItem* test_cf;
00046 #endif
00047 
00048     bool main_rd;
00049     bool main_wt;
00050 #ifndef QT_QWS_RAMSES
00051     bool sd_rd;
00052     bool sd_wt;
00053     bool cf_rd;
00054     bool cf_wt;
00055 #endif
00056 
00057     QClipboard* clb;
00058     QComboBox* machineCombo;
00059     Opie::Ui::OListView* tests;
00060     QPushButton* startButton;
00061     QDict <QStringList> machines;
00062 
00063     int textRendering( int );
00064     int gfxRendering( int );
00065     void performFileTest( const QString& fname, Opie::Ui::OCheckListItem* item );
00066 
00067 private slots:
00068     void run();
00069     void machineActivated( int );
00070 };
00071 

Generated on Sat Nov 5 16:17:57 2005 for OPIE by  doxygen 1.4.2