Show webfinger if displayName is unknown for an author.
[larjonas-pumpa.git] / src / pumpa_defines.h
blobf9a4d6fa9c0e2538e302d8239fa1bf7c54d8f1bb
1 /*
2 Copyright 2013-2015 Mats Sjöberg
4 This file is part of the Pumpa programme.
6 Pumpa is free software: you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 Pumpa is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pumpa. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _PUMPA_DEFINES_H_
21 #define _PUMPA_DEFINES_H_
23 #define CLIENT_NAME "pumpa"
24 #define CLIENT_FANCY_NAME "Pumpa"
25 #define CLIENT_VERSION "0.9.1"
26 #define CLIENT_ICON ":/images/pumpa.png"
28 #define WEBSITE_URL "https://pumpa.branchable.com/"
29 #define MARKUP_DOC_URL "https://pumpa.branchable.com/markdown/"
30 #define BUGTRACKER_URL "https://pumpa.branchable.com/bugs/"
32 #define IMAGE_MAX_WIDTH 320
33 #define IMAGE_MAX_HEIGHT 320
35 #define FEED_INBOX 8
36 #define FEED_MENTIONS 4
37 #define FEED_DIRECT 2
38 #define FEED_MEANWHILE 1
40 #define RECIPIENT_EMPTY 0
41 #define RECIPIENT_PUBLIC 1
42 #define RECIPIENT_FOLLOWERS 2
44 #define PUBLIC_RECIPIENT_ID "http://activityschema.org/collection/public"
46 //------------------------------------------------------------------------------
48 // First byte is used to tell the slot receiving the network reply how
49 // to interpret the response. (Most are just what activitystreams
50 // class to hand it off to, or some simple action to perform at once).
52 #define QAS_NULL 0
53 #define QAS_COLLECTION 1
54 #define QAS_ACTIVITY 2
55 #define QAS_OBJECTLIST 3
56 #define QAS_OBJECT 4
57 #define QAS_ACTORLIST 5
58 // #define QAS_ACTOR 6
59 #define QAS_SELF_PROFILE 7
60 #define QAS_IMAGE_UPLOAD 8
61 #define QAS_IMAGE_UPDATE 9
62 #define QAS_SELF_LISTS 10
63 #define QAS_EDIT_PROFILE 11
65 // The higher bits can be used for info for the method that is
66 // handling the further processing.
67 #define QAS_NEWER (1 << 8)
68 #define QAS_OLDER (1 << 9)
70 #define QAS_REFRESH (1 << 10)
71 #define QAS_TOGGLE_LIKE (1 << 11)
72 #define QAS_FOLLOW (1 << 12)
73 #define QAS_UNFOLLOW (1 << 13)
74 #define QAS_POST (1 << 14)
76 #define QAS_UPDATE_ONLY (1 << 15)
77 #define QAS_AVATAR_UPLOAD (1 << 16)
79 //------------------------------------------------------------------------------
81 #define MAX_WORD_LENGTH 40
83 #define MAX_SUGGESTIONS 10
85 //------------------------------------------------------------------------------
87 #endif /* _PUMPA_DEFINES_H_ */