blob: a5335dbc052241075908d0c708c20c9927a182c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/*
icqaccount.h - ICQ Account Class Header
Copyright (c) 2002 by Chris TenHarmsel <tenharmsel@staticmethod.net>
Copyright (c) 2004 by Richard Smith <kde@metafoo.co.uk>
Kopete (c) 2002-2004 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
*************************************************************************
*/
#ifndef ICQACCOUNT_H
#define ICQACCOUNT_H
#include "oscaraccount.h"
#include "oscarmyselfcontact.h"
#include "icqpresence.h"
#include "oscartypeclasses.h"
class KAction;
namespace Kopete { class AwayAction; }
class ICQProtocol;
class ICQAccount;
class OscarVisibilityDialog;
class ICQMyselfContact : public OscarMyselfContact
{
Q_OBJECT
TQ_OBJECT
public:
ICQMyselfContact( ICQAccount *acct );
void userInfoUpdated();
public slots:
void receivedShortInfo( const TQString& );
void fetchShortInfo();
};
class ICQAccount : public OscarAccount
{
Q_OBJECT
TQ_OBJECT
public:
ICQAccount( Kopete::Protocol *parent, TQString accountID, const char *name = 0L );
virtual ~ICQAccount();
ICQProtocol *protocol();
// Accessor method for the action menu
virtual KActionMenu* actionMenu();
/** Reimplementation from Kopete::Account */
void setOnlineStatus( const Kopete::OnlineStatus&, const TQString& );
virtual void setAway( bool away, const TQString &awayReason );
void connectWithPassword( const TQString &password );
void setUserProfile( const TQString &profile );
protected:
virtual OscarContact *createNewContact( const TQString &contactId, Kopete::MetaContact *parentContact, const SSI& ssiItem );
virtual TQString sanitizedMessage( const TQString& message );
protected slots:
virtual void disconnected( DisconnectReason reason );
private:
ICQ::Presence presence();
void setInvisible( ICQ::Presence::Visibility );
void setPresenceType( ICQ::Presence::Type, const TQString &awayMessage = TQString() );
void setPresenceTarget( const ICQ::Presence &presence, const TQString &message = TQString() );
//const unsigned long fulltqStatus( const unsigned long plaintqStatus );
private slots:
void slotToggleInvisible();
void slotSetVisiblility();
void slotVisibilityDialogClosed();
void slotGlobalIdentityChanged( const TQString& key, const TQVariant& value );
void slotBuddyIconChanged();
private:
bool mWebAware;
bool mHideIP;
TQString mInitialStatusMessage;
OscarVisibilityDialog* m_visibilityDialog;
};
#endif
//kate: indent-mode csands;
|