~ubuntu-branches/ubuntu/edgy/psi/edgy

« back to all changes in this revision

Viewing changes to src/contactview.h

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-03-28 11:11:02 UTC
  • mfrom: (2.1.2 etch)
  • Revision ID: james.westby@ubuntu.com-20060328111102-v1diqpbwqr4yijoy
Tags: 0.10-2build1
Manual sync from Debian. No Ubuntu-specific changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include<qtooltip.h>
27
27
#include<qvaluelist.h>
28
28
#include"xmpp.h"
29
 
 
30
 
typedef QValueList<XMPP::Jid> JidList;
31
 
typedef QValueListIterator<XMPP::Jid> JidListIt;
 
29
#include"common.h"
32
30
 
33
31
class IconAction;
34
32
class UserListItem;
76
74
 
77
75
        void ensureVisible(const Jid &);
78
76
        void clear();
79
 
        
 
77
 
80
78
        QString makeTip(bool trim, bool doLinkify) const;
81
79
 
82
80
        ContactViewItem *checkGroup(int type);
95
93
        void actionRename(const Jid &, const QString &);
96
94
        void actionGroupRename(const QString &, const QString &);
97
95
        void actionHistory(const Jid &);
98
 
        void actionStatusShow(const Jid &);
99
96
        void actionOpenChat(const Jid &);
100
97
        void actionOpenChatSpecific(const Jid &);
101
 
        void actionAgentSetStatus(const Jid &, int);
 
98
        void actionAgentSetStatus(const Jid &, Status &);
102
99
        void actionInfo(const Jid &);
103
100
        void actionAuth(const Jid &);
104
101
        void actionAuthRequest(const Jid &);
119
116
 
120
117
public:
121
118
        class Entry;
 
119
        class Private;
122
120
private:
123
 
        class Private;
124
121
        Private *d;
125
122
 
126
123
        ContactViewItem *addGroup(int type);
159
156
        void scRecvEvent(ContactViewItem *);
160
157
        void scSendMessage(ContactViewItem *);
161
158
        void scRename(ContactViewItem *);
 
159
        void scVCard(ContactViewItem *);
162
160
        void scHistory(ContactViewItem *);
163
161
        void scOpenChat(ContactViewItem *);
164
 
        void scAgentSetStatus(ContactViewItem *, int);
 
162
        void scAgentSetStatus(ContactViewItem *, Status &);
165
163
        void scRemove(ContactViewItem *);
166
164
        void doItemRenamed(ContactViewItem *, const QString &);
167
165
        void doContextMenu(ContactViewItem *, const QPoint &);
189
187
        void resetAnim();
190
188
        QTimer *animTimer() const;
191
189
 
192
 
        IconAction *qa_send, *qa_chat, *qa_ren, *qa_hist, *qa_logon, *qa_recv, *qa_rem;
193
 
        // Avatars
194
 
        //IconAction *qa_assignAvatar, *qa_clearAvatar;
 
190
        IconAction *qa_send, *qa_chat, *qa_ren, *qa_hist, *qa_logon, *qa_recv, *qa_rem, *qa_vcard;
 
191
        IconAction *qa_assignAvatar, *qa_clearAvatar;
195
192
 
 
193
        QSize minimumSizeHint() const;
 
194
        QSize sizeHint() const;
196
195
 
197
196
protected:
198
197
        // reimplemented
199
198
        void maybeTip(const QPoint &);
200
199
        void keyPressEvent(QKeyEvent *);
 
200
        bool eventFilter( QObject *, QEvent * );
201
201
        QDragObject *dragObject();
202
202
 
203
203
signals:
214
214
        void setShowHidden(bool);
215
215
        void setShowSelf(bool);
216
216
        void optionsUpdate();
 
217
        void recalculateSize();
217
218
 
218
219
private slots:
219
220
        void qlv_singleclick(int, QListViewItem *, const QPoint &, int);
230
231
        void doSendMessage();
231
232
        void doOpenChat();
232
233
        void doHistory();
 
234
        void doVCard();
233
235
        void doLogon();
234
236
        void doRemove();
235
 
        
236
 
        // Avatars
237
 
        //void doAssignAvatar();
238
 
        //void doClearAvatar();
 
237
 
 
238
        void doAssignAvatar();
 
239
        void doClearAvatar();
239
240
 
240
241
public:
241
242
        class Private;
 
243
        friend class Private;
242
244
private:
243
245
        Private *d;
244
246
 
247
249
        bool lcto_active; // double click active?
248
250
        QPoint lcto_pos;
249
251
        QListViewItem *lcto_item;
 
252
        QSize lastSize;
250
253
 
251
254
        friend class ContactProfile;
252
255
        void link(ContactProfile *);
253
256
        void unlink(ContactProfile *);
 
257
        bool allowResize() const;
254
258
};
255
259
 
256
260
// ContactViewItem: an entry in the ContactView (profile, group, or contact)