update tizen source
[framework/messaging/msg-service.git] / plugin / mms_plugin / include / MmsPluginEventHandler.h
1 /*
2 *
3 * Copyright (c) 2000-2012 Samsung Electronics Co., Ltd. All Rights Reserved.
4 *
5 * This file is part of msg-service.
6 *
7 * Contact: Jaeyun Jeong <jyjeong@samsung.com>
8 *          Sangkoo Kim <sangkoo.kim@samsung.com>
9 *          Seunghwan Lee <sh.cat.lee@samsung.com>
10 *          SoonMin Jung <sm0415.jung@samsung.com>
11 *          Jae-Young Lee <jy4710.lee@samsung.com>
12 *          KeeBum Kim <keebum.kim@samsung.com>
13 *
14 * PROPRIETARY/CONFIDENTIAL
15 *
16 * This software is the confidential and proprietary information of
17 * SAMSUNG ELECTRONICS ("Confidential Information"). You shall not
18 * disclose such Confidential Information and shall use it only in
19 * accordance with the terms of the license agreement you entered
20 * into with SAMSUNG ELECTRONICS.
21 *
22 * SAMSUNG make no representations or warranties about the suitability
23 * of the software, either express or implied, including but not limited
24 * to the implied warranties of merchantability, fitness for a particular
25 * purpose, or non-infringement. SAMSUNG shall not be liable for any
26 * damages suffered by licensee as a result of using, modifying or
27 * distributing this software or its derivatives.
28 *
29 */
30
31 #ifndef MMS_PLUGIN_EVENT_HANDLER_H
32 #define MMS_PLUGIN_EVENT_HANDLER_H
33
34
35 /*==================================================================================================
36                                                         INCLUDE FILES
37 ==================================================================================================*/
38 #include "MsgPluginInterface.h"
39 #include "MmsPluginTypes.h"
40 #include "MmsPluginMessage.h"
41
42 /*==================================================================================================
43                                                         CLASS DEFINITIONS
44 ==================================================================================================*/
45 class MmsPluginEventHandler
46 {
47 public:
48         static MmsPluginEventHandler *instance();
49
50         void registerListener(MSG_PLUGIN_LISTENER_S *pListener);
51         void handleSentStatus(int TapiReqId, MSG_NETWORK_STATUS_T NetStatus);
52         void handleMmsReceivedData(mmsTranQEntity *pRequest, char *pRetrivedFilePath);
53         void handleMmsError(mmsTranQEntity *pRequest);
54
55 private:
56         MmsPluginEventHandler();
57         virtual ~MmsPluginEventHandler();
58
59         static MmsPluginEventHandler *pInstance;
60
61         MSG_PLUGIN_LISTENER_S listener;
62 };
63
64 #endif //MMS_PLUGIN_EVENT_HANDLER_H
65