#include <QtCore/qsemaphore.h>
#ifndef QSEMAPHORE_H
#ifndef QT_NO_THREAD
class QSemaphore{
   /* Some contents are skipped to improve readability */
   public: bool tryAcquire(int n = 1);
   /* ... */
};
#endif // QT_NO_THREAD
#endif // QSEMAPHORE_H