~bregma/unity-lens-friends/lp-1056204

« back to all changes in this revision

Viewing changes to src/schemas.vala

  • Committer: Ken VanDine
  • Date: 2013-02-25 15:09:57 UTC
  • Revision ID: ken.vandine@canonical.com-20130225150957-md8l8kx6hmw41n40
We didn't need stream-model-schema.vala, it makes more sense to define the schema in the same class as the results schema.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2011-2012 Canonical Ltd.
 
2
 * Copyright (C) 2011-2013 Canonical Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU General Public License version 3, as published
18
18
 
19
19
namespace UnityFriends {
20
20
 
21
 
  /* Canonical schema for the results model shared with the Unity shell */
22
 
  public enum ResultsColumn
23
 
  {
24
 
    URI = 0,
25
 
    ICON_HINT,
26
 
    GROUP_ID,
27
 
    MIMETYPE,
28
 
    DISPLAY_NAME,
29
 
    COMMENT
30
 
  }
31
 
  
32
 
  /* Canonical schema for the sections model shared with the Unity shell */
33
 
  public enum CategoriesColumn
34
 
  {
35
 
    RENDERER = 0,
36
 
    DISPLAY_NAME,
37
 
    ICON_HINT
38
 
  }
39
 
  
40
 
  public enum Categories
41
 
  {
42
 
    MESSAGES = 0,
43
 
    REPLIES,
44
 
    IMAGES,
45
 
    VIDEOS,
46
 
    LINKS,
47
 
    PRIVATE,
48
 
    PUBLIC
49
 
  }
 
21
    /* Canonical schema for the results model shared with the Unity shell */
 
22
    public enum ResultsColumn
 
23
    {
 
24
        URI = 0,
 
25
        ICON_HINT,
 
26
        GROUP_ID,
 
27
        MIMETYPE,
 
28
        DISPLAY_NAME,
 
29
        COMMENT
 
30
    }
 
31
  
 
32
    /* Canonical schema for the sections model shared with the Unity shell */
 
33
    public enum CategoriesColumn
 
34
    {
 
35
        RENDERER = 0,
 
36
        DISPLAY_NAME,
 
37
        ICON_HINT
 
38
    }
 
39
  
 
40
    public enum Categories
 
41
    {
 
42
        MESSAGES = 0,
 
43
        REPLIES,
 
44
        IMAGES,
 
45
        VIDEOS,
 
46
        LINKS,
 
47
        PRIVATE,
 
48
        PUBLIC
 
49
    }
50
50
 
 
51
    /* Dee.Model schema */
 
52
    public enum StreamModelColumn
 
53
    {
 
54
        MESSAGE_IDS,
 
55
        STREAM,
 
56
        SENDER,
 
57
        SENDER_ID,
 
58
        SENDER_NICK,
 
59
        FROM_ME,
 
60
        TIMESTAMP,
 
61
        MESSAGE,
 
62
        ICON_URI,
 
63
        URL,
 
64
        LIKES,
 
65
        LIKED,
 
66
        LINK_PICTURE,
 
67
        LINK_NAME,
 
68
        LINK_URL,
 
69
        LINK_DESC,
 
70
        LINK_CAPTION,
 
71
        LINK_ICON
 
72
    }
51
73
 
52
74
} /* end UnityFriends namespace */