2
Kopete View Item Delegate
4
Copyright (c) 2007 by Matt Rogers <mattr@kde.org>
6
Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
8
*************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
*************************************************************************
18
#ifndef KOPETEITEMBASE_H
19
#define KOPETEITEMBASE_H
22
* @file kopeteitembase.h
23
* Contains definitions common between model items
26
#define KOPETE_GROUP_DEFAULT_OPEN_ICON "folder-open"
27
#define KOPETE_GROUP_DEFAULT_CLOSED_ICON "folder"
33
/** Qt Model Role Definitions */
34
const int TypeRole = Qt::UserRole + 100;
35
const int ElementRole = Qt::UserRole + 101;
36
const int OnlineStatusRole = Qt::UserRole + 102;
37
const int IdleTimeRole = Qt::UserRole + 103;
38
const int UuidRole = Qt::UserRole + 104;
39
const int TotalCountRole = Qt::UserRole + 105;
40
const int ConnectedCountRole = Qt::UserRole + 106;
41
const int IdRole = Qt::UserRole + 107;
42
// the IdRole is used in cases where the identifier is not really a Uuid
43
// for instance, Kopete::Group::groupId is the case justifying this role
44
const int MetaContactImageRole = Qt::UserRole + 108;
45
// the MetaContactImageRole can return QImage or QString. If it's QString
46
// then it contains icon name.
47
const int StatusTitleRole = Qt::UserRole + 109;
48
const int StatusMessageRole = Qt::UserRole + 110;
49
const int AccountIconsRole = Qt::UserRole + 111;
50
const int ObjectRole = Qt::UserRole + 112;
51
const int ExpandStateRole = Qt::UserRole + 113;
52
const int HasNewMessageRole = Qt::UserRole + 114;
53
const int MetaContactGroupRole = Qt::UserRole + 115;
54
const int AlwaysVisible = Qt::UserRole + 116;
56
/* Item type role values */
57
enum Type { Group, MetaContact };