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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
typedef std::set<CallID> ParticipantSet;
45
45
 
46
 
class Conference: public Recordable{
 
46
class Conference: public Recordable
 
47
{
47
48
 
48
49
    public:
49
50
 
50
51
        enum ConferenceState {Active_Atached, Active_Detached, Hold};
51
52
 
52
 
        static int count;
 
53
        static int count;
53
54
 
54
55
        Conference();
55
56
 
56
57
        ~Conference();
57
58
 
58
 
        std::string getConfID() { return _id; }
59
 
 
60
 
        int getState();
61
 
 
62
 
        void setState(ConferenceState state);
63
 
 
64
 
        std::string getStateStr();
65
 
 
66
 
        int getNbParticipants() { return _nbParticipant; }
67
 
 
68
 
        void add(CallID participant_id);
69
 
 
70
 
        void remove(CallID participant_id);
71
 
 
72
 
        void bindParticipant(CallID participant_id);
73
 
 
74
 
        ParticipantSet getParticipantList();
75
 
 
76
 
        std::string getRecFileId(){ return getConfID(); }
77
 
 
78
 
    private:  
 
59
        std::string getConfID() {
 
60
            return _id;
 
61
        }
 
62
 
 
63
        int getState();
 
64
 
 
65
        void setState (ConferenceState state);
 
66
 
 
67
        std::string getStateStr();
 
68
 
 
69
        int getNbParticipants() {
 
70
            return _nbParticipant;
 
71
        }
 
72
 
 
73
        void add (CallID participant_id);
 
74
 
 
75
        void remove (CallID participant_id);
 
76
 
 
77
        void bindParticipant (CallID participant_id);
 
78
 
 
79
        ParticipantSet getParticipantList();
 
80
 
 
81
        std::string getRecFileId() {
 
82
            return getConfID();
 
83
        }
 
84
 
 
85
        virtual bool setRecording();
 
86
 
 
87
    private:
79
88
 
80
89
        /** Unique ID of the conference */
81
90
        CallID _id;
82
91
 
83
 
        ConferenceState _confState;
 
92
        ConferenceState _confState;
84
93
 
85
94
        ParticipantSet _participants;
86
95