blob: d1f4ce28af8cb3a8c175fb1e40791f37338decbe (
plain)
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
|
//
// global.h
// VKPC
//
// Created by Eugene on 11/28/13.
// Copyright (c) 2013-2014 Eugene Z. All rights reserved.
//
#import "PlaylistTableController.h"
// Variables
extern int const VKPCHTTPServerPort;
extern NSString * const VKPCHTTPServerHost;
extern int const VKPCWSServerPort;
extern char * const VKPCWSServerHost;
extern char * const VKPCWSClientHost;
//extern char * const VKPCHostsFile;
extern NSString * const VKPCAppHomeURL;
extern NSString * const CH1PEmail;
extern BOOL const VKPCIsDebug;
extern BOOL const VKPCIsServerLogsEnabled;
extern BOOL VKPCIsYosemite;
extern NSString * const VKPCEZCopyright;
extern NSString * const VKPCEZCopyrightYears;
extern NSString * const VKPCEZURL;
extern NSString * const VKPCPreferencesShowNotifications;
extern NSString * const VKPCPreferencesInvertPlaylistIcons;
extern NSString * const VKPCPreferencesCatchMediaButtons;
extern NSString * const VKPCPreferencesBrowser;
extern NSString * const VKPCPreferencesStatisticReportedTimestamp;
extern NSString * const VKPCPreferencesUUID;
extern NSString * const VKPCPreferencesUseExtensionMode;
extern int VKPCSessionID;
//extern PlaylistTableController *VKPCPlaylistTableController;
extern pid_t VKPCPID;
extern NSString * const VKPCImageEmpty;
extern NSString * const VKPCImageCellBg;
extern NSString * const VKPCImageCellPressedBg;
extern NSString * const VKPCImagePause;
extern NSString * const VKPCImagePlay;
extern NSString * const VKPCImageTitleSeparator;
extern NSString * const VKPCImageSettings;
extern NSString * const VKPCImageSettingsPressed;
extern NSString * const VKPCImageStatus;
extern NSString * const VKPCImageStatusPressed;
extern NSString * const kAppleInterfaceStyle;
extern NSString * const kAppleInterfaceStyleDark;
extern NSString * const kAppleInterfaceThemeChangedNotification;
extern NSString * const kCFBundleDisplayName;
extern NSString * const kCFBundleShortVersionString;
extern NSString * const kCFBundleVersion;
// Functions
void VKPCInitGlobals();
void VKPCInitUUID();
void ShowNotification();
NSString * GetFileFromResourceAsString(NSString *fileName, NSError * __autoreleasing *error);
NSString *GetSystemFontName();
//BOOL IsDarkMode();
InterfaceStyle GetInterfaceStyle();
NSDictionary * VKPCGetImagesDictionary();
void DebugLog(const char *str);
long GetTimestamp();
BOOL IsAnotherProcessRunning();
|