~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/psievent.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2009-09-25 17:49:51 UTC
  • mfrom: (6.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090925174951-lvm7kdap82o8xhn3
Tags: 0.13-1
* Updated to upstream version 0.13
* Set Standards-Version to 3.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
class PsiAccount;
42
42
class QDomElement;
43
43
 
 
44
class AvCall;
44
45
 
45
46
class PsiEvent : public QObject
46
47
{
57
58
                File,
58
59
                RosterExchange,
59
60
                //Status
60
 
                HttpAuth
 
61
                HttpAuth,
 
62
                AvCallType
61
63
        };
62
64
        virtual int type() const = 0;
63
65
 
265
267
 
266
268
};
267
269
 
 
270
// incoming avcall
 
271
class AvCallEvent : public PsiEvent
 
272
{
 
273
        Q_OBJECT
 
274
public:
 
275
        AvCallEvent(const XMPP::Jid &j, AvCall *sess, PsiAccount *acc);
 
276
        AvCallEvent(const AvCallEvent &from);
 
277
        ~AvCallEvent();
 
278
 
 
279
        int type() const { return AvCallType; }
 
280
        XMPP::Jid from() const;
 
281
        void setFrom(const XMPP::Jid &);
 
282
        AvCall *takeAvCall();
 
283
 
 
284
        virtual int priority() const;
 
285
 
 
286
        virtual QString description() const;
 
287
 
 
288
        virtual PsiEvent *copy() const;
 
289
 
 
290
private:
 
291
        XMPP::Jid v_from;
 
292
        QPointer<AvCall> sess;
 
293
};
 
294
 
268
295
class EventItem
269
296
{
270
297
public: