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