~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/src/account.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#ifndef ACCOUNT_H
33
33
#define ACCOUNT_H
34
34
 
35
 
#include <string>
36
 
#include <vector>
37
 
 
38
35
#include "noncopyable.h"
39
36
#include "config/sfl_config.h"
40
37
#include "config/serializable.h"
41
38
#include "registration_states.h"
42
39
 
 
40
#include <functional>
 
41
#include <string>
 
42
#include <vector>
 
43
 
43
44
class Account;
44
45
class VoIPLink;
45
46
 
97
98
         * Unregister the underlying VoIPLink. Stop the event listener.
98
99
         * This should update the getRegistrationState() return value.
99
100
         */
100
 
        virtual void unregisterVoIPLink() = 0;
 
101
        virtual void unregisterVoIPLink(std::function<void(bool)> cb = std::function<void(bool)>()) = 0;
101
102
 
102
103
        /**
103
104
         * Tell if the account is enable or not.
116
117
         * Set the registration state of the specified link
117
118
         * @param state The registration state of underlying VoIPLink
118
119
         */
119
 
        void setRegistrationState(const RegistrationState &state);
 
120
        void setRegistrationState(RegistrationState state);
120
121
 
121
122
        /* They should be treated like macro definitions by the C++ compiler */
122
123
        std::string getUsername() const {
215
216
        static const char * const VIDEO_CODECS_KEY;
216
217
        static const char * const RINGTONE_PATH_KEY;
217
218
        static const char * const RINGTONE_ENABLED_KEY;
 
219
        static const char * const VIDEO_ENABLED_KEY;
218
220
        static const char * const DISPLAY_NAME_KEY;
219
221
        static const char * const ALIAS_KEY;
220
222
        static const char * const TYPE_KEY;
227
229
        static const char * const ACCOUNT_AUTOANSWER_KEY;
228
230
        static const char * const MAILBOX_KEY;
229
231
        static const char * const USER_AGENT_KEY;
 
232
        static const char * const HAS_CUSTOM_USER_AGENT_KEY;
230
233
        static const char * const DEFAULT_USER_AGENT;
231
234
        static const char * const PRESENCE_MODULE_ENABLED_KEY;
232
235
 
290
293
        std::string ringtonePath_;
291
294
 
292
295
        /**
 
296
         * Allows user to temporarily disable video calling
 
297
         */
 
298
 
 
299
        bool videoEnabled_ = true;
 
300
 
 
301
        /**
293
302
         * Play ringtone when receiving a call
294
303
         */
295
304
        bool ringtoneEnabled_;
304
313
         */
305
314
        std::string userAgent_;
306
315
 
 
316
        //  true if user has overridden default
 
317
        bool hasCustomUserAgent_;
 
318
 
307
319
        /**
308
320
             * Account mail box
309
321
         */