~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/account.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2011-04-05 14:14:13 UTC
  • mfrom: (4.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110405141413-hbwbunfsxpn2rtre
Tags: 0.9.13-1
* New upstream release
  - remove Debian patch (applied upstream)
* Fix watch file
* Remove unnecessary versioned dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
179
179
 
180
180
        virtual std::map<std::string, std::string> getAccountDetails() = 0;
181
181
 
182
 
 
183
182
        /**
184
183
         * Load the settings for this account.
185
184
         */
264
263
            return _registrationStateDetailed;
265
264
        }
266
265
 
267
 
 
268
 
        /* inline functions */
269
266
        /* They should be treated like macro definitions by the C++ compiler */
270
267
        inline std::string getUsername (void) {
271
268
            return _username;
272
269
        }
 
270
 
273
271
        inline void setUsername (std::string username) {
274
272
            _username = username;
275
273
        }
309
307
        inline CodecOrder& getActiveCodecs (void) {
310
308
            return _codecOrder;
311
309
        }
 
310
 
 
311
        /**
 
312
         * Update both the codec order structure and the codec string used for
 
313
         * SDP offer and configuration respectively
 
314
         */
312
315
        void setActiveCodecs (const std::vector <std::string>& list);
313
316
 
314
317
        inline std::string getRingtonePath (void) {
354
357
        // assignment operator
355
358
        Account& operator= (const Account& rh);
356
359
 
 
360
        /**
 
361
         * Helper function used to load the default codec order from the codec factory
 
362
         * setActiveCodecs is called to sync both _codecOrder and _codecStr
 
363
         */
 
364
        void loadDefaultCodecs (void);
 
365
 
357
366
    protected:
358
367
 
359
 
        void loadAudioCodecs (void);
360
368
 
361
369
        /**
362
370
         * Account ID are assign in constructor and shall not changed