All Classes Functions Variables Typedefs Friends Pages
IConfig.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2012 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef ICONFIG_H__GLYMPSE__
8 #define ICONFIG_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
17 /*O*public**/ struct IConfig : public IEventSink
18 {
39  public: virtual void setExpireOnArrival(int32 mode) = 0;
40 
46  public: virtual int32 getExpireOnArrival() = 0;
47 
53  public: virtual void setXoaProfile(const GPrimitive& profile) = 0;
54 
60  public: virtual GPrimitive getXoaProfile() = 0;
61 
67  public: virtual void allowLocationSharing(bool allow) = 0;
68 
72  public: virtual bool isSharingLocation() = 0;
73 
78  public: virtual void allowSpeedSharing(bool allow) = 0;
79 
83  public: virtual bool isSharingSpeed() = 0;
84 
88  public: virtual void setAutoWatchPublicGroup(bool watch) = 0;
89 
93  public: virtual bool isPublicGroupAutoWatched() = 0;
94 
98  public: virtual void setTrackTrimmingEnabled(bool enabled) = 0;
99 
103  public: virtual bool isTrackTrimmingEnabled() = 0;
104 
108  public: virtual int64 getTrackTrimLength() = 0;
109 
114  public: virtual int64 getAccountCreationTime() = 0;
115 
119  public: virtual int64 getInviteLifetime() = 0;
120 
126  public: virtual int64 getMaximumTicketDuration() = 0;
127 
131  public: virtual int32 getPostRatePeriod() = 0;
132 
137  public: virtual int32 getMaximumNicknameLength() = 0;
138 
145  public: virtual GString getDeviceId() = 0;
146 
150  public: virtual bool setDirectionsProvider(const GPrimitive& provider) = 0;
151 
155  public: virtual GPrimitive getDirectionsProvider() = 0;
156 
160  public: virtual void setCardsEnabled(bool enabled) = 0;
161 
165  public: virtual bool areCardsEnabled() = 0;
166 
170  public: virtual void setPoisEnabled(bool enabled) = 0;
171 
175  public: virtual bool arePoisEnabled() = 0;
176 
201  public: virtual GPrimitive getContents() = 0;
202 
206  public: virtual void save() = 0;
207 
219  public: virtual void setDebug(bool debug) = 0;
220 
224  public: virtual bool isDebug() = 0;
225 };
226 
227 /*C*/typedef O< IConfig > GConfig;
228 
229 }
230 
231 #endif // !ICONFIG_H__GLYMPSE__