source: psi/trunk/src/statusdlg.h@ 54

Last change on this file since 54 was 2, checked in by dmik, 19 years ago

Imported original Psi 0.10 sources from Affinix

File size: 1.5 KB
Line 
1/*
2 * statusdlg.h - dialogs for setting and reading status messages
3 * Copyright (C) 2001, 2002 Justin Karneges
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 */
20
21#ifndef STATUSDLG_H
22#define STATUSDLG_H
23
24#include<qdialog.h>
25#include"im.h"
26
27using namespace XMPP;
28
29class PsiCon;
30class PsiAccount;
31class UserListItem;
32
33class StatusShowDlg : public QDialog
34{
35 Q_OBJECT
36public:
37 StatusShowDlg(const UserListItem &);
38};
39
40class StatusSetDlg : public QDialog
41{
42 Q_OBJECT
43public:
44 StatusSetDlg(PsiCon *, const Status &);
45 StatusSetDlg(PsiAccount *, const Status &);
46 ~StatusSetDlg();
47
48protected:
49 void keyPressEvent(QKeyEvent *);
50
51signals:
52 void set(const Status &);
53 void cancelled();
54
55private slots:
56 void doButton();
57 void cancel();
58 void reject();
59 void chooseStatusPreset(int);
60
61private:
62 class Private;
63 Private *d;
64
65 void init();
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.