diff options
Diffstat (limited to 'examples/servicefw/user/echowindow.h')
-rw-r--r-- | examples/servicefw/user/echowindow.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/examples/servicefw/user/echowindow.h b/examples/servicefw/user/echowindow.h new file mode 100644 index 00000000..cbc506e6 --- /dev/null +++ b/examples/servicefw/user/echowindow.h @@ -0,0 +1,63 @@ +/*************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (directui@nokia.com) +** +** This file is part of libdui. +** +** If you have questions regarding the use of this file, please contact +** Nokia at directui@nokia.com. +** +** This library is free software; you can redistribute it and/or +** modify it under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation +** and appearing in the file LICENSE.LGPL included in the packaging +** of this file. +** +****************************************************************************/ + +#ifndef ECHODIALOG_H +#define ECHODIALOG_H + +#include <QWidget> +#include <QStatusBar> + +class TextProcessorInterface; + +QT_BEGIN_NAMESPACE +class QString; +class QLineEdit; +class QLabel; +class QPushButton; +class QGridLayout; +QT_END_NAMESPACE + +/* + * Example class to demonstrate use of service framework + */ +class EchoWindow : public QWidget +{ + Q_OBJECT + +public: + EchoWindow(); + virtual ~EchoWindow(); + +private slots: + void sendEcho(); + void enableTextProcessing(const QString &service); + void disableTextProcessing(const QString &service); + +private: + void createGUI(); + + TextProcessorInterface *textProcessorInterface; + QLineEdit *lineEdit; + QLabel *label; + QPushButton *button; + QStatusBar *statusBar; + QGridLayout *layout; +}; + +#endif |