Switch to unified view

a/src/bincimapmime/iodevice.cc b/src/bincimapmime/iodevice.cc
...
...
39
IODevice::IODevice(int f) : flags(f | IsEnabled),
39
IODevice::IODevice(int f) : flags(f | IsEnabled),
40
                  maxInputBufferSize(0),
40
                  maxInputBufferSize(0),
41
                  maxOutputBufferSize(0),
41
                  maxOutputBufferSize(0),
42
                  timeout(0), 
42
                  timeout(0), 
43
                  readCount(0), writeCount(0),
43
                  readCount(0), writeCount(0),
44
                  outputLevel(0), outputLevelLimit(0),
44
                  outputLevel(ErrorLevel),
45
                outputLevelLimit(ErrorLevel),
45
                  error(Unknown), errorString("Unknown error"),
46
                  error(Unknown), errorString("Unknown error"),
46
                  dumpfd(0)
47
                  dumpfd(0)
47
{
48
{
48
}
49
}
49
50
...
...
159
{
160
{
160
  return timeout;
161
  return timeout;
161
}
162
}
162
163
163
//------------------------------------------------------------------------
164
//------------------------------------------------------------------------
164
void IODevice::setOutputLevel(unsigned int level)
165
void IODevice::setOutputLevel(LogLevel level)
165
{
166
{
166
  outputLevel = level;
167
  outputLevel = level;
167
}
168
}
168
169
169
//------------------------------------------------------------------------
170
//------------------------------------------------------------------------
170
unsigned int IODevice::getOutputLevel(void) const
171
IODevice::LogLevel IODevice::getOutputLevel(void) const
171
{
172
{
172
  return outputLevel;
173
  return outputLevel;
173
}
174
}
174
175
175
//------------------------------------------------------------------------
176
//------------------------------------------------------------------------
176
void IODevice::setOutputLevelLimit(unsigned int level)
177
void IODevice::setOutputLevelLimit(LogLevel level)
177
{
178
{
178
  outputLevelLimit = level;
179
  outputLevelLimit = level;
179
}
180
}
180
181
181
//------------------------------------------------------------------------
182
//------------------------------------------------------------------------
182
unsigned int IODevice::getOutputLevelLimit(void) const
183
IODevice::LogLevel IODevice::getOutputLevelLimit(void) const
183
{
184
{
184
  return outputLevelLimit;
185
  return outputLevelLimit;
185
}
186
}
186
187
187
//------------------------------------------------------------------------
188
//------------------------------------------------------------------------