-
Notifications
You must be signed in to change notification settings - Fork 251
/
Gas_Mask_Prefix.pch
83 lines (68 loc) · 4.01 KB
/
Gas_Mask_Prefix.pch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/***************************************************************************
* Copyright (C) 2009-2012 by Clockwise *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#ifndef NSAppKitVersionNumber10_8
#define NSAppKitVersionNumber10_8 1187
#endif
#define ApplicationID @"dmks"
#define HostsFileExtension @"hst"
#define HostsFileLocation @"/etc/hosts"
#define ThreadBusyNotification @"ThreadBusyNotification"
#define ThreadNotBusyNotification @"ThreadNotBusyNotification"
#define HostsFileShouldBeSelectedNotification @"HostsFileShouldBeSelectedNotification"
#define HostsFileCreatedNotification @"HostsFileCreatedNotification"
#define HostsFileRemovedNotification @"HostsFileRemovedNotification"
#define HostsFileRenamedNotification @"HostsFileRenamedNotification"
#define HostsFileSavedNotification @"HostsFileSavedNotification"
// Notifications from hotkeys
#define ActivateFileNotification @"activateFileNotification" // sent when any given host file is activated.
#define ActivatePreviousFileNotification @"activatePreviousFileNotification"
#define ActivateNextFileNotification @"activateNextFileNotification"
#define UpdateAndSynchronizeNotification @"updateAndSynchronizeNotification"
// Misc notifications
#define RestoredHostsFileNotification @"restoredHostsFileNotification"
// Hosts node should be redrawn
#define HostsNodeNeedsUpdateNotification @"HostsNodeNeedsUpdateNotification"
// File was dragged into the Trash
#define DraggedFileShouldBeRemovedNotification @"DraggedFileShouldBeRemovedNotification"
// Network status changed
#define NetworkStatusChangedNotification @"NetworkStatusChangedNotification"
#define AllHostsFilesLoadedFromDiskNotification @"AllHostsFilesLoadedFromDiskNotification"
#define IssueTrackerURL @"https://github.com/2ndalpha/gasmask/issues"
#define DonateURL @"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=98JFC3MUF5Q44&lc=EE&item_name=Gas%20Mask%20Support¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest"
// Logger
#define kLogFile @"Gas Mask.log"
#import "Logger.h"
#define logDebug(message, ...) privateLogDebug(message, __PRETTY_FUNCTION__, ##__VA_ARGS__)
#define logInfo(message, ...) privateLogInfo(message, __PRETTY_FUNCTION__, ##__VA_ARGS__)
#define logWarn(message, ...) privateLogWarn(message, __PRETTY_FUNCTION__, ##__VA_ARGS__)
#define logError(message, ...) privateLogError(message, __PRETTY_FUNCTION__, ##__VA_ARGS__)
#import "DebugUtil.h"
BOOL openedAtLogin();
BOOL reopened();
#define SuppressPerformSelectorLeakWarning(Stuff) \
do { \
_Pragma("clang diagnostic push") \
_Pragma("clang diagnostic ignored \"-Warc-performSelector-leaks\"") \
Stuff; \
_Pragma("clang diagnostic pop") \
} while (0)
#endif