~ubuntu-branches/ubuntu/saucy/kopete/saucy-proposed

« back to all changes in this revision

Viewing changes to protocols/oscar/liboscar/tasks/ownuserinfotask.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-06-21 02:22:39 UTC
  • Revision ID: package-import@ubuntu.com-20130621022239-63l3zc8p0nf26pt6
Tags: upstream-4.10.80
ImportĀ upstreamĀ versionĀ 4.10.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Kopete Oscar Protocol
 
3
    aimlogintask.h - Handles logging into to the AIM service
 
4
 
 
5
    Copyright (c) 2004 Matt Rogers <mattr@kde.org>
 
6
 
 
7
    Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
 
8
 
 
9
    *************************************************************************
 
10
    *                                                                       *
 
11
    * This library is free software; you can redistribute it and/or         *
 
12
    * modify it under the terms of the GNU Lesser General Public            *
 
13
    * License as published by the Free Software Foundation; either          *
 
14
    * version 2 of the License, or (at your option) any later version.      *
 
15
    *                                                                       *
 
16
    *************************************************************************
 
17
*/
 
18
#ifndef OWNUSERINFOTASK_H
 
19
#define OWNUSERINFOTASK_H
 
20
 
 
21
#include "task.h"
 
22
#include "userdetails.h"
 
23
 
 
24
/**
 
25
Request our user info from the server and handle our user info when it comes back
 
26
 
 
27
@author Kopete Developers
 
28
*/
 
29
class OwnUserInfoTask : public Task
 
30
{
 
31
Q_OBJECT
 
32
public:
 
33
        OwnUserInfoTask( Task* parent );
 
34
 
 
35
        ~OwnUserInfoTask();
 
36
 
 
37
        virtual bool forMe( const Transfer* transfer ) const;
 
38
        virtual bool take( Transfer* transfer );
 
39
        virtual void onGo();
 
40
 
 
41
        UserDetails getInfo() const;
 
42
        
 
43
signals:
 
44
        /** Emitted when user info is received. Needed because succeeded() is only emitted once. */
 
45
        void gotInfo();
 
46
        
 
47
        void haveAvailableMessage( const QString& );
 
48
        
 
49
        void haveIconChecksum( const QString& );
 
50
        
 
51
        void buddyIconUploadRequested();
 
52
 
 
53
private:
 
54
        UserDetails m_details;
 
55
};
 
56
 
 
57
#endif
 
58
 
 
59
//kate: tab-width 4; indent-mode csands;