Listing 1. Creating a Header File

#include <qwidget.h>
#include <qpe/config.h>

class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QMultiLineEdit;
class QPushButton;

class Hello : public QWidget
{
    Q_OBJECT
public:
    Hello( QWidget* parent = 0, const char* name = 0,
           WFlags fl = 0 );
    QPushButton* ExitButton;
    QPushButton* WorkButton;
    QMultiLineEdit* EditField;
public slots:
    void quit(); // Slot connected with Exit button
    void work(); // Slot connected with Work button
protected:
    QGridLayout* HelloLayout;
    Config *MyConfiguration; // Qtopia configuration
                             // class
    int counter;
};