File indexing completed on 2024-05-12 03:48:29

0001 /*
0002  * SPDX-FileCopyrightText: 2006-2011 the LibQxt project <http://libqxt.org, foundation@libqxt.org>
0003  * SPDX-License-Identifier: BSD-3-Clause
0004  */
0005 
0006 #ifndef QXTNAMESPACE_H
0007 #define QXTNAMESPACE_H
0008 
0009 #include "qxtglobal.h"
0010 #include <Qt>
0011 
0012 #if (defined BUILD_QXT | defined Q_MOC_RUN) && !defined(QXT_DOXYGEN_RUN)
0013 #include <QObject>
0014 
0015 class QXT_CORE_EXPORT Qxt : public QObject {
0016     Q_OBJECT
0017     Q_ENUMS(Rotation)
0018     Q_ENUMS(DecorationStyle)
0019     Q_ENUMS(ErrorCode)
0020 
0021 public:
0022 #else
0023 namespace Qxt {
0024 #endif
0025     enum Rotation { NoRotation = 0, UpsideDown = 180, Clockwise = 90, CounterClockwise = 270 };
0026 
0027     enum DecorationStyle { NoDecoration, Buttonlike, Menulike };
0028 
0029     enum ErrorCode {
0030         NoError,
0031         UnknownError,
0032         LogicalError,
0033         Bug,
0034         UnexpectedEndOfFunction,
0035         NotImplemented,
0036         CodecError,
0037         NotInitialised,
0038         EndOfFile,
0039         FileIOError,
0040         FormatError,
0041         DeviceError,
0042         SDLError,
0043         InsufficientMemory,
0044         SeeErrorString,
0045         UnexpectedNullParameter,
0046         ClientTimeout,
0047         SocketIOError,
0048         ParserError,
0049         HeaderTooLong,
0050         Auth,
0051         Overflow
0052     };
0053 
0054     enum QxtItemDataRole { ItemStartTimeRole = Qt::UserRole + 1, ItemDurationRole = ItemStartTimeRole + 1, UserRole = ItemDurationRole + 23 };
0055 
0056     enum Timeunit { Second, Minute, Hour, Day, Week, Month, Year };
0057 }
0058 
0059 #endif // QXTNAMESPACE_H