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

« back to all changes in this revision

Viewing changes to kopete/contactlist/kopeteitembase.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 View Item Delegate
 
3
 
 
4
    Copyright (c) 2007 by Matt Rogers <mattr@kde.org>
 
5
 
 
6
    Kopete    (c) 2002-2007 by the Kopete developers  <kopete-devel@kde.org>
 
7
 
 
8
    *************************************************************************
 
9
    *                                                                       *
 
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.                                   *
 
14
    *                                                                       *
 
15
    *************************************************************************
 
16
*/
 
17
 
 
18
#ifndef KOPETEITEMBASE_H
 
19
#define KOPETEITEMBASE_H
 
20
 
 
21
/** 
 
22
 * @file kopeteitembase.h
 
23
 * Contains definitions common between model items
 
24
 */ 
 
25
 
 
26
#define KOPETE_GROUP_DEFAULT_OPEN_ICON "folder-open"
 
27
#define KOPETE_GROUP_DEFAULT_CLOSED_ICON "folder"
 
28
 
 
29
namespace Kopete
 
30
{
 
31
        namespace Items
 
32
        {
 
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;
 
55
 
 
56
                /* Item type role values */
 
57
                enum Type { Group, MetaContact };
 
58
        }
 
59
}
 
60
 
 
61
#endif