root/trunk/qt4-gui/src/userevents/userviewevent.h

Revision 6185, 2.3 kB (checked in by flynd, 7 months ago)

Moved eventSent signal from mainwin to licqgui.

Line 
1// -*- c-basic-offset: 2 -*-
2/*
3 * This file is part of Licq, an instant messaging client for UNIX.
4 * Copyright (C) 2000-2006 Licq developers
5 *
6 * Licq is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * Licq 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
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Licq; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19 */
20
21#ifndef USERVIEWEVENT_H
22#define USERVIEWEVENT_H
23
24#include "usereventcommon.h"
25
26class QCheckBox;
27class QGroupBox;
28class QPushButton;
29class QSplitter;
30class QTreeWidgetItem;
31
32class CUserEvent;
33class ICQEvent;
34
35
36namespace LicqQtGui
37{
38class MLView;
39class MessageList;
40class SkinnableButton;
41class UserSendCommon;
42
43class UserViewEvent : public UserEventCommon
44{
45  Q_OBJECT
46
47public:
48  UserViewEvent(QString id, unsigned long ppid, QWidget* parent = 0);
49  virtual ~UserViewEvent();
50
51private:
52  QSplitter* myReadSplitter;
53  MLView* myMessageView;
54  MessageList* myMessageList;
55  CUserEvent* myCurrentEvent;
56  QCheckBox* myAutoCloseCheck;
57  QGroupBox* myActionsBox;
58  QPushButton* myRead1Button;
59  QPushButton* myRead2Button;
60  QPushButton* myRead3Button;
61  QPushButton* myRead4Button;
62  QPushButton* myReadNextButton;
63  SkinnableButton* myCloseButton;
64
65  // The currently displayed message in decoded (Unicode) form.
66  QString myMessageText;
67
68  void generateReply();
69  void sendMsg(QString text);
70  void updateNextButton();
71  virtual void userUpdated(CICQSignal* sig, QString id = QString::null, unsigned long ppid = 0);
72
73private slots:
74  void autoClose();
75  void read1();
76  void read2();
77  void read3();
78  void read4();
79  void readNext();
80  void clearEvent();
81  void closeDialog();
82  void msgTypeChanged(UserSendCommon* from, UserSendCommon* to);
83  void printMessage(QTreeWidgetItem* item);
84  void sentEvent(const ICQEvent* e);
85  void setEncoding();
86};
87
88} // namespace LicqQtGui
89
90#endif
Note: See TracBrowser for help on using the browser.