#include <QtGui/qtextcursor.h>
#ifndef QTEXTCURSOR_H
class QTextCursor{
   /* Some contents are skipped to improve readability */
   public: enum SelectionType{
      WordUnderCursor = 0,
      LineUnderCursor = 1,
      BlockUnderCursor = 2,
      Document = 3,
   };
   /* ... */
};
#endif // QTEXTCURSOR_H