Krita Source Code Documentation
Loading...
Searching...
No Matches
KisImportExportErrorCode.h File Reference
#include <QFile>
#include <QFileDevice>
#include <QString>
#include <kritaui_export.h>
#include <QDebug>

Go to the source code of this file.

Classes

struct  KisImportExportComplexError
 
struct  KisImportExportErrorCannotRead
 
struct  KisImportExportErrorCannotWrite
 
class  KisImportExportErrorCode
 

Namespaces

namespace  ImportExportCodes
 

Enumerations

enum  ImportExportCodes::ErrorCodeID {
  ImportExportCodes::InternalError , ImportExportCodes::FileNotExist , ImportExportCodes::NoAccessToRead , ImportExportCodes::ErrorWhileReading ,
  ImportExportCodes::FileFormatIncorrect , ImportExportCodes::FormatFeaturesUnsupported , ImportExportCodes::FormatColorSpaceUnsupported , ImportExportCodes::CannotCreateFile ,
  ImportExportCodes::NoAccessToWrite , ImportExportCodes::ErrorWhileWriting , ImportExportCodes::InsufficientMemory , ImportExportCodes::FileFormatNotSupported ,
  ImportExportCodes::Cancelled , ImportExportCodes::Failure , ImportExportCodes::Busy , ImportExportCodes::OK
}
 

Functions

QDebug & operator<< (QDebug &d, const KisImportExportErrorCode &errorCode)
 

Function Documentation

◆ operator<<()

QDebug & operator<< ( QDebug & d,
const KisImportExportErrorCode & errorCode )
inline

Definition at line 145 of file KisImportExportErrorCode.h.

146{
147 switch (errorCode.errorFieldUsed) {
149 d << "None of the error fields is in use.";
150 break;
152 d << "Cannot read: " << errorCode.cannotRead.m_error;
153 break;
155 d << "Cannot write: " << errorCode.cannotRead.m_error;
156 break;
158 d << "Error code = " << errorCode.codeId;
159 }
160 d << " " << errorCode.errorMessage();
161 return d;
162}
KisImportExportErrorCannotRead cannotRead
ImportExportCodes::ErrorCodeID codeId