~phablet-team/messaging-framework/maintain-connection-state

« back to all changes in this revision

Viewing changes to include/messaging/messenger.h

  • Committer: Tarmac
  • Author(s): Roberto Mier Escandon
  • Date: 2016-08-23 22:12:02 UTC
  • mfrom: (54.1.6 include-group-creator)
  • Revision ID: tarmac-20160823221202-xp8p4pcb6fwp5jar
Added creator to the group when created the channel.

NOTE: this branch should be landed along with https://code.launchpad.net/~ningbo-team/ningbo/include-group-creator/+merge/303179.

Approved by Tiago Salem Herrmann, system-apps-ci-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
{
30
30
struct Message;
31
31
class Recipient;
 
32
class Group;
32
33
 
33
34
/// @brief Messenger abstracts creation of Chat instances.
34
35
class MESSAGING_FW_PUBLIC Messenger : NonCopyable, NonMovable
44
45
                                                      const Message& message) = 0;
45
46
 
46
47
        /// @brief a new group invitation is received. This should be managed to create a new related chat
47
 
        virtual void on_new_group_invitation_received(const std::shared_ptr<Recipient>& new_group,
48
 
                                                      const std::shared_ptr<Recipient>& initiator) = 0;
 
48
        virtual void on_new_group_invitation_received(const std::shared_ptr<Group>& new_group) = 0;
49
49
 
50
50
      protected:
51
51
        /// @brief only inherited classes can created an observer
69
69
                                                const Message& message);
70
70
 
71
71
    /// @brief announces a new group invitation received
72
 
    void announce_new_group_invitation_received(const std::shared_ptr<Recipient>& new_group,
73
 
                                                const std::shared_ptr<Recipient>& initiator);
 
72
    void announce_new_group_invitation_received(const std::shared_ptr<Group>& new_group);
74
73
 
75
74
    virtual Chat::SPtr create_chat_with(const std::shared_ptr<Recipient>& recipient,
76
75
                                        const std::shared_ptr<Chat::Observer>& observer) = 0;