source: qutecom-coip/libs/coipmanager/include/coipmanager/chatsessionmanager/IChatSessionPlugin.h @ 125:d648f4cb122f

Last change on this file since 125:d648f4cb122f was 125:d648f4cb122f, checked in by laurent, 3 years ago

wengo => qutecom

File size: 2.2 KB
Line 
1/*
2 * QuteCom, a voice over Internet phone
3 * Copyright (C) 2010 Mbdsys
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20#ifndef OWICHATSESSIONPLUGIN_H
21#define OWICHATSESSIONPLUGIN_H
22
23#include <coipmanager/chatsessionmanager/EnumChatStatusMessage.h>
24#include <coipmanager/chatsessionmanager/IChatSession.h>
25#include <coipmanager/session/ISession.h>
26
27#include <coipmanager_base/EnumChatTypingState.h>
28
29/**
30 * Interface for ChatSession implementation.
31 *
32 * @author Philippe Bernery
33 * @author Tanguy Krotoff
34 */
35class COIPMANAGER_API IChatSessionPlugin : public ISession, public IChatSession {
36        Q_OBJECT
37public:
38
39        IChatSessionPlugin(CoIpManager & coIpManager);
40
41        virtual ~IChatSessionPlugin();
42
43Q_SIGNALS:
44
45        /**
46         * Emitted when a message has been received.
47         *
48         * @param imContact the sender of the message
49         * @param message the received message
50         */
51        void messageReceivedSignal(IMContact imContact, std::string message);
52
53        /**
54         * Chat typing state event.
55         *
56         * @param contactId contact who typing state has changed
57         * @param state @see EnumChatTypingState
58         */
59        void typingStateChangedSignal(IMContact imContact, EnumChatTypingState::ChatTypingState state);
60
61                /**
62         * Emitted when a status message has been received. (e.g "Joe is connected")
63         *
64         * @param status the type of status message
65         * @param message a message describing the status
66         */
67        void statusMessageReceivedSignal(EnumChatStatusMessage::ChatStatusMessage status, std::string message);
68
69};
70
71#endif  //OWICHATSESSIONPLUGIN_H
Note: See TracBrowser for help on using the repository browser.