~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to daemon/src/audio/recordable.h

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-02-18 21:47:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120218214709-6362d71gqdsdkrj5
Tags: 1.0.2-1
* New upstream release
  - remove logging patch (applied upstream)
  - update s390 patch since it was partially applied upstream
* Include the Evolution plugin as a separate binary package

* Fix compilation issues on SH4 (closes: #658987)
* Merge Ubuntu's binutils-gold linking fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        /**
44
44
         * Return recording state (true/false)
45
45
         */
46
 
        bool isRecording() {
47
 
            return recAudio.isRecording();
 
46
        bool isRecording() const {
 
47
            return recAudio_.isRecording();
48
48
        }
49
49
 
50
50
        /**
57
57
         * Stop recording
58
58
         */
59
59
        void stopRecording() {
60
 
            recAudio.stopRecording();
 
60
            recAudio_.stopRecording();
61
61
        }
62
62
 
63
63
        /**
64
64
         * Init the recording file name according to path specified in configuration
65
65
         */
66
 
        void initRecFileName(std::string filename);
 
66
        void initRecFilename(const std::string &filename);
67
67
 
68
68
        /**
69
69
         * Return the file path for this recording
70
70
         */
71
 
        std::string getFileName();
 
71
        virtual std::string getFilename() const;
72
72
 
73
73
        /**
74
74
         * Set recording sampling rate.
82
82
 
83
83
        /**
84
84
         * Virtual method to be implemented in order to the main
85
 
         * buffer to retreive the recorded id.
 
85
         * buffer to retrieve the recorded id.
86
86
         */
87
87
        virtual std::string getRecFileId() const = 0;
88
88
 
89
 
        /**
90
 
         * An instance of audio recorder
91
 
         */
92
 
        AudioRecord recAudio;
93
 
 
94
 
        AudioRecorder recorder;
 
89
    protected:
 
90
        AudioRecord recAudio_;
 
91
        AudioRecorder recorder_;
95
92
};
96
93
 
97
94
#endif