KVIrc 5.2.4
Developer APIs
KviMessageBox.h
Go to the documentation of this file.
1#ifndef _KVI_MSGBOX_H_
2#define _KVI_MSGBOX_H_
3//=============================================================================
4//
5// File : KviMessageBox.h
6// Creation date : Sun Jan 17 1999 13:55:41 by Szymon Stefanek
7//
8// This file is part of the KVIrc IRC client distribution
9// Copyright (C) 1999-2010 Szymon Stefanek (pragma at kvirc dot net)
10//
11// This program is FREE software. You can redistribute it and/or
12// modify it under the terms of the GNU General Public License
13// as published by the Free Software Foundation; either version 2
14// of the License, or (at your option) any later version.
15//
16// This program is distributed in the HOPE that it will be USEFUL,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19// See the GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program. If not, write to the Free Software Foundation,
23// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24//
25//=============================================================================
26
27#include "kvi_settings.h"
28#include "KviQString.h"
29/*
30class KviMessageBox : public KviTalMessageBox
31{
32 enum Result { Yes, No, Ok, Cancel };
33 enum ButtonResult { Button1, Button2, Button3 };
34
35 KVIRC_API void warning(const char * fmt,...);
36 KVIRC_API void information(const char * fmt,...);
37
38 KVIRC_API Result yesNo(const char * fmt,...);
39 KVIRC_API Result yesNoCancel(const char * fmt,...);
40
41 KVIRC_API ButtonResult oneButton(const char * btnTxt,const char * fmt,...);
42 KVIRC_API ButtonResult twoButtons(const char * btnTxt1,const char * btnTxt2,const char * fmt,...);
43 KVIRC_API ButtonResult threeButtons(const char * btnTxt1,const char * btnTxt2,const char * btnTxt3,const char * fmt,...);
44};
45*/
46
47namespace KviMessageBox
48{
49 KVIRC_API void warning(QString fmt, ...);
50 KVIRC_API void information(QString fmt, ...);
51 KVIRC_API bool yesNo(const QString & caption, QString fmt, ...);
52}
53
54#endif
Helper functions for the QString class.
This file contains compile time settings.
#define KVIRC_API
Definition kvi_settings.h:127
COMPILE_WITH_KDE.
Definition KviMessageBox.cpp:40
void warning(QString fmt,...)
Definition KviMessageBox.cpp:41
void information(QString fmt,...)
Definition KviMessageBox.cpp:55
bool yesNo(const QString &caption, QString fmt,...)
Definition KviMessageBox.cpp:69