KVIrc  4.9.2
DeveloperAPIs
KviError.h
Go to the documentation of this file.
1 #ifndef _KVI_ERROR_H_
2 #define _KVI_ERROR_H_
3 //=============================================================================
4 //
5 // File : KviError.h
6 // Creation date : Sun Jul 02 2000 18:35:56 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-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 
33 #include "kvi_settings.h"
34 
35 class QString;
36 
41 namespace KviError
42 {
47  enum Code
48  {
49  Success = 0,
79  DNSNoName = 30,
95  BrokenPipe = 46,
162  SSLError = 113,
170  };
171 
177  KVILIB_API QString getDescription(KviError::Code eError);
178 
185 
192 }
193 
194 #endif //_KVI_ERROR_H_
Definition: KviError.h:52
Definition: KviError.h:84
Definition: KviError.h:104
Definition: KviError.h:132
const char * getUntranslatedDescription(KviError::Code eError)
Returns an untranslated description of the error.
Definition: KviError.cpp:171
Definition: KviError.h:76
Definition: KviError.h:67
Definition: KviError.h:86
Definition: KviError.h:77
Definition: KviError.h:142
Definition: KviError.h:88
Definition: KviError.h:126
Definition: KviError.h:89
Definition: KviError.h:128
Definition: KviError.h:106
Definition: KviError.h:60
Definition: KviError.h:73
Definition: KviError.h:156
Definition: KviError.h:87
Definition: KviError.h:81
Definition: KviError.h:166
Definition: KviError.h:158
Definition: KviError.h:98
Definition: KviError.h:54
Definition: KviError.h:169
Definition: KviError.h:108
Definition: KviError.h:66
Definition: KviError.h:146
Definition: KviError.h:133
Definition: KviError.h:149
Definition: KviError.h:97
Definition: KviError.h:51
Definition: KviError.h:147
Definition: KviError.h:116
Definition: KviError.h:99
Definition: KviError.h:110
Definition: KviError.h:163
Definition: KviError.h:119
Definition: KviError.h:120
Definition: KviError.h:112
Definition: KviError.h:143
Definition: KviError.h:136
Definition: KviError.h:122
Definition: KviError.h:168
Definition: KviError.h:91
Definition: KviError.h:117
Code
Contains all error codes.
Definition: KviError.h:47
Definition: KviError.h:58
Definition: KviError.h:50
QString getDescription(KviError::Code eError)
Returns the description of the error.
Definition: KviError.cpp:182
Definition: KviError.h:105
Definition: KviError.h:135
Definition: KviError.h:155
Definition: KviError.h:101
Definition: KviError.h:151
KviError::Code translateSystemError(int iErrNo)
Gets system errors and returns their code number.
Definition: KviError.cpp:187
Definition: KviError.h:118
Definition: KviError.h:70
Definition: KviError.h:165
Definition: KviError.h:111
Definition: KviError.h:71
Definition: KviError.h:57
Definition: KviError.h:53
Definition: KviError.h:93
Definition: KviError.h:83
Definition: KviError.h:94
Definition: KviError.h:140
Definition: KviError.h:114
Definition: KviError.h:153
Definition: KviError.h:90
Definition: KviError.h:69
Definition: KviError.h:121
Definition: KviError.h:107
Definition: KviError.h:113
Definition: KviError.h:115
Definition: KviError.h:96
Definition: KviError.h:75
Definition: KviError.h:62
Definition: KviError.h:167
Definition: KviError.h:68
Definition: KviError.h:85
Definition: KviError.h:134
Definition: KviError.h:138
Definition: KviError.h:161
Definition: KviError.h:95
Definition: KviError.h:139
Definition: KviError.h:154
Definition: KviError.h:109
Definition: KviError.h:150
Definition: KviError.h:82
Definition: KviError.h:137
This file contains compile time settings.
Definition: KviError.h:127
Definition: KviError.h:162
Definition: KviError.h:92
Definition: KviError.h:131
Definition: KviError.h:160
Definition: KviError.h:79
Definition: KviError.h:65
Definition: KviError.h:144
Definition: KviError.h:145
#define KVILIB_API
Definition: kvi_settings.h:125
Definition: KviError.h:157
Definition: KviError.h:159
Definition: KviError.h:64
Definition: KviError.h:100
Definition: KviError.h:72
Definition: KviError.h:141
Definition: KviError.h:49