File indexing completed on 2024-04-21 04:57:24

0001 /* This file is part of the KDE project
0002 
0003    Copyright (C) 2009 by Fabian Henze <flyser42 AT gmx DOT de>
0004 
0005    This program is free software; you can redistribute it and/or
0006    modify it under the terms of the GNU General Public
0007    License as published by the Free Software Foundation; either
0008    version 2 of the License, or (at your option) any later version.
0009 */
0010 
0011 #ifndef TRAY_H
0012 #define TRAY_H
0013 
0014 #include <KStatusNotifierItem>
0015 
0016 class MainWindow;
0017 class KGet;
0018 
0019 /**
0020  * This class implements the main tray icon for kget. It has a popup
0021  * from which the user can open a new transfer, configure kget,
0022  * minimize/restore or quit the app (default behavior).
0023  *
0024  * @short KGet's system tray icon.
0025  **/
0026 
0027 class Tray : public KStatusNotifierItem
0028 {
0029     Q_OBJECT
0030 public:
0031     Tray(MainWindow *parent);
0032 
0033     void setDownloading(bool downloading);
0034     bool isDownloading();
0035 
0036 private Q_SLOTS:
0037     void slotActivated();
0038 };
0039 
0040 #endif