1 /* 2 icqreadaway.h - ICQ Protocol Plugin 3 4 Copyright (c) 2003 by Stefan Gehn <metz@gehn.net> 5 6 Kopete (c) 2003 by the Kopete developers <kopete-devel@kde.org> 7 8 ************************************************************************* 9 * * 10 * This program is free software; you can redistribute it and/or modify * 11 * it under the terms of the GNU General Public License as published by * 12 * the Free Software Foundation; either version 2 of the License, or * 13 * (at your option) any later version. * 14 * * 15 ************************************************************************* 16 */ 17 18 #ifndef ICQREADAWAY_H 19 #define ICQREADAWAY_H 20 21 #include <kdebug.h> 22 #include <kdialog.h> 23 #include <QVBoxLayout> 24 25 class ICQAccount; 26 class ICQContact; 27 class KTextBrowser; 28 29 30 class ICQReadAway : public KDialog 31 { 32 Q_OBJECT 33 34 public: 35 explicit ICQReadAway(ICQContact *, QWidget *parent = nullptr, const char* name = "ICQReadAway"); 36 37 private Q_SLOTS: 38 void slotFetchAwayMessage(); 39 void slotAwayMessageChanged(); 40 void slotCloseClicked(); 41 void slotUrlClicked(const QString &url); 42 void slotMailClicked(const QString&, const QString &address); 43 44 Q_SIGNALS: 45 void closing(); 46 47 private: 48 ICQAccount *mAccount; 49 ICQContact *mContact; 50 QWidget *mMainWidget; 51 KTextBrowser *awayMessageBrowser; 52 }; 53 #endif 54