~ubuntu-branches/ubuntu/oneiric/psi/oneiric

« back to all changes in this revision

Viewing changes to src/psipopup.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2005-01-10 17:41:43 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050110174143-ltocv5zapl6blf5d
Tags: 0.9.3-1
* New upstream release
* Cleaned up debian/rules (some things are done by upstream Makefiles now)
* Fixed some lintian warnings:
  - removed executable bit from some .png files
  - moved psi.desktop to /usr/share/applications
* Updated menu files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * psipopup.h - the Psi passive popup class
 
3
 * Copyright (C) 2003  Michail Pishchagin
 
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 PSIPOPUP_H
 
22
#define PSIPOPUP_H
 
23
 
 
24
#include <qobject.h>
 
25
 
 
26
#include "im.h"
 
27
using namespace XMPP;
 
28
 
 
29
class PsiCon;
 
30
class PsiAccount;
 
31
class UserListItem;
 
32
class FancyPopup;
 
33
class Icon;
 
34
class PsiEvent;
 
35
 
 
36
class PsiPopup : public QObject
 
37
{
 
38
        Q_OBJECT
 
39
public:
 
40
        PsiPopup(const Icon *titleIcon, QString titleText, PsiAccount *acc);
 
41
        ~PsiPopup();
 
42
 
 
43
        enum PopupType {
 
44
                AlertNone = 0,
 
45
 
 
46
                AlertOnline,
 
47
                AlertOffline,
 
48
                AlertStatusChange,
 
49
 
 
50
                AlertMessage,
 
51
                AlertChat,
 
52
                AlertHeadline,
 
53
                AlertFile
 
54
        };
 
55
        PsiPopup(PopupType type, PsiAccount *acc);
 
56
 
 
57
        void setData(const Icon *icon, QString text);
 
58
        void setData(const Jid &, const Resource &, const UserListItem * = 0, const PsiEvent * = 0);
 
59
 
 
60
        void show();
 
61
 
 
62
        QString id() const;
 
63
        FancyPopup *popup();
 
64
 
 
65
        static void deleteAll();
 
66
 
 
67
public:
 
68
        class Private;
 
69
private:
 
70
        Private *d;
 
71
        friend class Private;
 
72
};
 
73
 
 
74
#endif