@@ -36,32 +36,6 @@ class QMimeData;
36
36
class QString ;
37
37
class QStringList ;
38
38
39
- /* * Command status. */
40
- enum CommandStatus {
41
- /* * Script finished */
42
- CommandFinished = 0 ,
43
- /* * Command invocation error. */
44
- CommandError = 1 ,
45
- /* * Bad command syntax. */
46
- CommandBadSyntax = 2 ,
47
- /* * Command successfully invoked. */
48
- CommandSuccess,
49
- /* * Activate window */
50
- CommandActivateWindow,
51
- /* * Ask client to send data from its stdin. */
52
- CommandReadInput
53
- };
54
-
55
- /* * Message code for/from clipboard monitor. */
56
- enum MonitorMessageCode {
57
- MonitorPing,
58
- MonitorPong,
59
- MonitorSettings,
60
- MonitorChangeClipboard,
61
- MonitorClipboardChanged,
62
- MonitorLog
63
- };
64
-
65
39
#if QT_VERSION < 0x050000
66
40
# ifdef Q_WS_WIN
67
41
# define Q_OS_WIN
@@ -74,48 +48,10 @@ enum MonitorMessageCode {
74
48
# define NO_GLOBAL_SHORTCUTS
75
49
#endif
76
50
77
- #ifdef COPYQ_LOG_DEBUG
78
- inline bool isLogVerbose ()
79
- {
80
- static const bool verbose = qgetenv (" COPYQ_VERBOSE" ) == " 1" ;
81
- return verbose;
82
- }
83
- # define COPYQ_LOG (msg ) log(msg, LogDebug)
84
- # define COPYQ_LOG_VERBOSE (msg ) do { if ( isLogVerbose () ) log (msg, LogDebug); } while (false )
85
- #else
86
- # define COPYQ_LOG (msg )
87
- # define COPYQ_LOG_VERBOSE (msg )
88
- #endif
89
-
90
- enum LogLevel {
91
- #ifdef COPYQ_LOG_DEBUG
92
- LogDebug,
93
- #endif
94
- LogNote,
95
- LogWarning,
96
- LogError
97
- };
98
-
99
- #define MIME_PREFIX " application/x-copyq-"
100
- extern const char mimeText[];
101
- extern const char mimeHtml[];
102
- extern const char mimeUriList[];
103
- extern const char mimeWindowTitle[];
104
- extern const char mimeItems[];
105
- extern const char mimeItemNotes[];
106
- extern const char mimeOwner[];
107
- #ifdef COPYQ_WS_X11
108
- extern const char mimeClipboardMode[];
109
- #endif
110
-
111
51
QString quoteString (const QString &str);
112
52
113
53
QString escapeHtml (const QString &str);
114
54
115
- QString createLogMessage (const QString &label, const QString &text, const LogLevel level);
116
-
117
- void log (const QString &text, const LogLevel level = LogNote);
118
-
119
55
bool isMainThread ();
120
56
121
57
const QMimeData *clipboardData (QClipboard::Mode mode = QClipboard::Clipboard);
0 commit comments