2 Copyright (C) 2010-2024 Ben Kibbey <bjk@luxsci.net>
4 This file is part of qpwmc.
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with this library; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
24 #include <QSystemTrayIcon>
26 #include "editShortcutDialog.h"
28 #include "pwmdRemoteHost.h"
30 class TrayIcon
:public QSystemTrayIcon
38 void knownHostRc (gpg_error_t
);
41 void slotSystemTrayActivated (QSystemTrayIcon::
43 void slotConnectionStateChanged (Pwmd::ConnectionState
);
44 void slotEditShortcuts ();
45 void slotShortCut (QAction
*);
46 void slotClearClipboard ();
47 void slotClearClipboardReal ();
51 void slotCommandResult (PwmdCommandQueueItem
*item
, QString result
,
52 gpg_error_t rc
, bool queued
);
53 void slotKnownHostCallback (void *data
, const char *host
, const char *key
,
55 void slotBusy (int, bool);
56 void slotRotateIcon ();
57 void slotStatusMessage (QString line
, void *);
61 void refreshShortcuts ();
62 void shortCutFinalize (const QString
&);
63 void showMessage (gpg_error_t
, bool reset
= true);
64 void rotateIcon (bool reset
= false);
65 void startStopTimer (bool start
);
69 QTimer
*clipboardTimer
;
70 PwmdRemoteHost currentHostData
;