diff options
Diffstat (limited to 'konversation/src/queuetuner.h')
-rw-r--r-- | konversation/src/queuetuner.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/konversation/src/queuetuner.h b/konversation/src/queuetuner.h new file mode 100644 index 0000000..081572c --- /dev/null +++ b/konversation/src/queuetuner.h @@ -0,0 +1,62 @@ +/* + 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) version 2. +*/ + +/* + Copyright (C) 2008 Eli J. MacKenzie <argonel at gmail.com> +*/ + + +#ifndef QUEUETUNER_H +#define QUEUETUNER_H + +#include "queuetunerbase.h" + +class Server; +class ViewContainer; +class QTimer; + +#include <qtimer.h> + +class QueueTuner: public QueueTunerBase +{ + Q_OBJECT + + public: + QueueTuner(QWidget* parent, ViewContainer *container); + ~QueueTuner(); + virtual void contextMenuEvent (QContextMenuEvent*); + + public slots: + void setServer(Server* newServer); + void getRates(); + void timerFired(); + virtual void hide(); + virtual void show(); + virtual void open(); + virtual void close(); + void slowRateChanged(int); + void slowTypeChanged(int); + void slowIntervalChanged(int); + void normalRateChanged(int); + void normalTypeChanged(int); + void normalIntervalChanged(int); + void fastRateChanged(int); + void fastTypeChanged(int); + void fastIntervalChanged(int); + void serverDestroyed(QObject*); + + signals: + void hidden(); + + private: + Server* m_server; + QTimer m_timer; + bool &m_vis; +}; + + +#endif |