Framework for looking up contacts directly in nepomuk in addition to going through...
[kdepim.git] / mailcommon / snippetvariabledialog_p.h
blobb9f48a915ee6b697ca047d2e2e7db3fbb3aec96d
1 /*
2 Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net,
3 Author: Tobias Koenig <tokoe@kdab.com>
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
21 #ifndef MAILCOMMON_SNIPPETVARIABLEDIALOG_P_H
22 #define MAILCOMMON_SNIPPETVARIABLEDIALOG_P_H
24 #include <KDialog>
26 class KTextEdit;
27 class QCheckBox;
29 namespace MailCommon {
31 class SnippetVariableDialog : public KDialog
33 Q_OBJECT
35 public:
36 SnippetVariableDialog( const QString &variableName,
37 QMap<QString, QString> *variables,
38 QWidget *parent = 0 );
40 QString variableValue() const;
41 bool saveVariableIsChecked() const;
43 protected:
44 virtual void slotButtonClicked( int button );
46 private:
47 QString mVariableName;
48 QMap<QString, QString> *mVariables;
49 KTextEdit *mVariableValueText;
50 QCheckBox *mSaveVariable;
55 #endif