#include <QtGui/qimagewriter.h> #ifndef QIMAGEWRITER_H class QImageWriter{ /* Some contents are skipped to improve readability */ public: enum ImageWriterError{ UnknownError = 0, DeviceError = 1, UnsupportedFormatError = 2, }; /* ... */ }; #endif // QIMAGEWRITER_H