- NetworkModelController(QObject *parent = 0);
- virtual ~NetworkModelController();
-
- // don't change enums without doublechecking masks etc. in code
- enum ActionType {
- // Network actions
- NetworkMask = 0x0f,
- NetworkConnect = 0x01,
- NetworkDisconnect = 0x02,
- NetworkConnectAll = 0x03,
- NetworkDisconnectAll = 0x04,
-
- // Buffer actions
- BufferMask = 0xf0,
- BufferJoin = 0x10,
- BufferPart = 0x20,
- BufferSwitchTo = 0x30,
- BufferRemove = 0x40,
-
- // Hide actions
- HideMask = 0x0f00,
- HideJoin = 0x0100,
- HidePart = 0x0200,
- HideQuit = 0x0300,
- HideNick = 0x0400,
- HideMode = 0x0500,
- HideDayChange = 0x0600,
- HideUseDefaults = 0xe00,
- HideApplyToAll = 0xf00,
-
- // General actions
- GeneralMask = 0xf000,
- JoinChannel = 0x1000,
- ShowChannelList = 0x2000,
- ShowIgnoreList = 0x3000,
-
- // Nick actions
- NickMask = 0xff0000,
- NickWhois = 0x010000,
- NickQuery = 0x020000,
- NickSwitchTo = 0x030000,
- NickCtcpVersion = 0x040000,
- NickCtcpPing = 0x050000,
- NickCtcpTime = 0x060000,
- NickCtcpFinger = 0x070000,
- NickOp = 0x080000,
- NickDeop = 0x090000,
- NickVoice = 0x0a0000,
- NickDevoice = 0x0b0000,
- NickKick = 0x0c0000,
- NickBan = 0x0d0000,
- NickKickBan = 0x0e0000,
-
- // Actions that are handled externally
- // These emit a signal to the action requester, rather than being handled here
- ExternalMask = 0xff000000,
- HideBufferTemporarily = 0x01000000,
- HideBufferPermanently = 0x02000000
- };
-
- inline Action *action(ActionType type) const;
+ NetworkModelController(QObject *parent = 0);
+ virtual ~NetworkModelController();
+
+ // don't change enums without doublechecking masks etc. in code
+ enum ActionType {
+ // Network actions
+ NetworkMask = 0x0f,
+ NetworkConnect = 0x01,
+ NetworkDisconnect = 0x02,
+ NetworkConnectAll = 0x03,
+ NetworkDisconnectAll = 0x04,
+
+ // Buffer actions
+ BufferMask = 0xf0,
+ BufferJoin = 0x10,
+ BufferPart = 0x20,
+ BufferSwitchTo = 0x30,
+ BufferRemove = 0x40,
+
+ // Hide actions
+ HideMask = 0x0f00,
+ HideJoin = 0x0100,
+ HidePart = 0x0200,
+ HideQuit = 0x0300,
+ HideNick = 0x0400,
+ HideMode = 0x0500,
+ HideDayChange = 0x0600,
+ HideTopic = 0x0700,
+ HideUseDefaults = 0xe00,
+ HideApplyToAll = 0xf00,
+
+ // General actions
+ GeneralMask = 0xf000,
+ JoinChannel = 0x1000,
+ ShowChannelList = 0x2000,
+ ShowIgnoreList = 0x3000,
+
+ // Nick actions
+ NickMask = 0xff0000,
+ NickWhois = 0x010000,
+ NickQuery = 0x020000,
+ NickSwitchTo = 0x030000,
+ NickCtcpVersion = 0x040000,
+ NickCtcpPing = 0x050000,
+ NickCtcpTime = 0x060000,
+ NickCtcpClientinfo = 0x070000,
+ NickOp = 0x080000,
+ NickDeop = 0x090000,
+ NickVoice = 0x0a0000,
+ NickDevoice = 0x0b0000,
+ NickHalfop = 0x0c0000,
+ NickDehalfop = 0x0d0000,
+ NickKick = 0x0e0000,
+ NickBan = 0x0f0000,
+ NickKickBan = 0x100000,
+ NickIgnoreUser = 0x200000,
+ NickIgnoreHost = 0x300000,
+ NickIgnoreDomain = 0x400000,
+ NickIgnoreCustom = 0x500000,
+ // The next 5 types have to stay together
+ // Don't change without reading ContextMenuActionProvider::addIgnoreMenu!
+ NickIgnoreToggleEnabled0 = 0x600000,
+ NickIgnoreToggleEnabled1 = 0x700000,
+ NickIgnoreToggleEnabled2 = 0x800000,
+ NickIgnoreToggleEnabled3 = 0x900000,
+ NickIgnoreToggleEnabled4 = 0xa00000,
+
+ // Actions that are handled externally
+ // These emit a signal to the action requester, rather than being handled here
+ ExternalMask = 0xff000000,
+ HideBufferTemporarily = 0x01000000,
+ HideBufferPermanently = 0x02000000
+ };
+
+ inline Action *action(ActionType type) const;