'hidden' contacts
[dyskinesia.git] / src / floatman.h
blob3af81aefc18e1d38c7cc2797c8931a5217ca41c1
1 /* coded by Ketmar // Vampire Avalon (psyc://ketmar.no-ip.org/~Ketmar)
2 * Understanding is not required. Only obedience.
4 * This program is free software. It comes without any warranty, to
5 * the extent permitted by applicable law. You can redistribute it
6 * and/or modify it under the terms of the Do What The Fuck You Want
7 * To Public License, Version 2, as published by Sam Hocevar. See
8 * http://sam.zoy.org/wtfpl/COPYING for more details.
9 */
10 #ifndef FLOATMAN_H
11 #define FLOATMAN_H
13 #include <QIcon>
14 #include <QHash>
15 #include <QString>
17 #include "floatwin.h"
20 class ChatForm;
23 ///////////////////////////////////////////////////////////////////////////////
24 class FloatersManager : public FloatWinManager {
25 Q_OBJECT
27 public:
28 FloatersManager (ChatForm *mCForm, int titleBlinkTO=500, int msgBlinkTO=300);
29 ~FloatersManager ();
31 virtual const QIcon *getStatusIcon (FloatingWindow *sender, PsycProto::Status status);
32 virtual const QIcon *getMsgIcon (FloatingWindow *sender);
34 virtual void saveFState () const;
35 virtual void loadFState ();
37 private:
38 ChatForm *mForm;
39 QHash <PsycProto::Status, QIcon *> mIconCache;
40 QIcon *mMsgIcon;
44 #endif