kopete/protocols/messenger/libpapillon
papillon_enums.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PAPILLON_ENUMS_H
00016 #define PAPILLON_ENUMS_H
00017
00018 #include <QtCore/QFlags>
00019
00020 namespace Papillon
00021 {
00026 struct ContactListEnums
00027 {
00031 enum Type
00032 {
00033 ForwardList = 1,
00034 AllowList = 2,
00035 BlockList = 4,
00036 ReverseList = 8,
00037 PendingList = 16
00038 };
00039 Q_DECLARE_FLAGS(ListFlags, Type)
00040 };
00041 Q_DECLARE_OPERATORS_FOR_FLAGS( ContactListEnums::ListFlags )
00042
00043
00047 struct ClientInfo
00048 {
00052 enum Feature
00053 {
00054 FeatureNone = 0x0,
00055 WindowsMobile = 0x1,
00056 MsnMobileDevice = 0x40,
00057 MsnDirectDevice = 0x80,
00058 WebMessenger = 0x100,
00059 InkFormatGif = 0x04,
00060 InkFormatIsf = 0x08,
00061 SupportWebcam = 0x10,
00062 SupportMultiPacketMessaging = 0x20,
00063 SupportDirectIM = 0x4000,
00064 SupportVoiceClips = 0x40000,
00065 SupportWinks = 0x8000,
00066 SupportMsnSearch = 0x10000,
00067 MSNC1 = 0x10000000,
00068 MSNC2 = 0x20000000,
00069 MSNC3 = 0x30000000,
00070 MSNC4 = 0x40000000,
00071 MSNC5 = 0x50000000,
00072 MSNC6 = 0x60000000
00073 };
00074 Q_DECLARE_FLAGS(Features, Feature)
00075
00076
00079 enum PersonalInformation
00080 {
00081 PersonalInfoNone = 0,
00082 Nickname,
00083 PhoneHome,
00084 PhoneWork,
00085 PhoneMobile,
00086 MobileAuthorization,
00087 MobileDeviceEnabled
00088 };
00089 };
00090 Q_DECLARE_OPERATORS_FOR_FLAGS( Papillon::ClientInfo::Features )
00091
00092
00096 struct Presence
00097 {
00101 enum Status
00102 {
00103 Away,
00104 BeRightBack,
00105 Busy,
00106 Idle,
00107 Invisible,
00108 Offline,
00109 Online,
00110 OnThePhone,
00111 OutToLunch
00112 };
00113
00117 enum MediaType
00118 {
00119 MediaNone = 0,
00120 MediaMusic,
00121 MediaGames,
00122 MediaOffice
00123 };
00124 };
00125 }
00126
00127 #endif