15
15
* You should have received a copy of the GNU General Public License
16
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
19
* Additional permission under GNU GPL version 3 section 7:
69
69
CallManager(DBus::Connection& connection);
70
static const char* SERVER_PATH;
72
71
/* methods exported by this interface,
73
72
* you will have to implement them in your ObjectAdaptor
76
75
/* Call related methods */
77
void placeCall(const std::string& accountID, const std::string& callID, const std::string& to);
78
void placeCallFirstAccount(const std::string& callID, const std::string& to);
76
bool placeCall(const std::string& accountID, const std::string& callID, const std::string& to);
80
void refuse(const std::string& callID);
81
void accept(const std::string& callID);
82
void hangUp(const std::string& callID);
83
void hold(const std::string& callID);
84
void unhold(const std::string& callID);
85
void transfer(const std::string& callID, const std::string& to);
86
void attendedTransfer(const std::string& transferID, const std::string& targetID);
78
bool refuse(const std::string& callID);
79
bool accept(const std::string& callID);
80
bool hangUp(const std::string& callID);
81
bool hold(const std::string& callID);
82
bool unhold(const std::string& callID);
83
bool transfer(const std::string& callID, const std::string& to);
84
bool attendedTransfer(const std::string& transferID, const std::string& targetID);
87
85
std::map< std::string, std::string > getCallDetails(const std::string& callID);
88
86
std::vector< std::string > getCallList();
90
88
/* Conference related methods */
91
void joinParticipant(const std::string& sel_callID, const std::string& drag_callID);
89
bool joinParticipant(const std::string& sel_callID, const std::string& drag_callID);
92
90
void createConfFromParticipantList(const std::vector< std::string >& participants);
93
void addParticipant(const std::string& callID, const std::string& confID);
94
void addMainParticipant(const std::string& confID);
95
void detachParticipant(const std::string& callID);
96
void joinConference(const std::string& sel_confID, const std::string& drag_confID);
97
void hangUpConference(const std::string& confID);
98
void holdConference(const std::string& confID);
99
void unholdConference(const std::string& confID);
100
std::vector< std::string > getConferenceList();
101
std::vector< std::string > getParticipantList(const std::string& confID);
91
bool addParticipant(const std::string& callID, const std::string& confID);
92
bool addMainParticipant(const std::string& confID);
93
bool detachParticipant(const std::string& callID);
94
bool joinConference(const std::string& sel_confID, const std::string& drag_confID);
95
bool hangUpConference(const std::string& confID);
96
bool holdConference(const std::string& confID);
97
bool unholdConference(const std::string& confID);
98
std::vector<std::string> getConferenceList();
99
std::vector<std::string> getParticipantList(const std::string& confID);
102
100
std::string getConferenceId(const std::string& callID);
103
std::map< std::string, std::string > getConferenceDetails(const std::string& callID);
101
std::map<std::string, std::string> getConferenceDetails(const std::string& callID);
105
103
/* File Playback methods */
106
104
bool startRecordedFilePlayback(const std::string& filepath);