tizen 2.4 release
[framework/web/wrt-installer.git] / src / pkg-manager / pkgmgr_signal_dummy.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /*
17  * @author      Jan Olszak (j.olszak@samsung.com)
18  * @version     0.1
19  * @brief       Dummy version of PkgmgrSignal.
20  */
21
22 #ifndef WRT_PKGMGR_SIGNAL_DUMMY_H_
23 #define WRT_PKGMGR_SIGNAL_DUMMY_H_
24
25 #include <vector>
26 #include <pkg-manager/pkgmgr_signal_interface.h>
27 #include <dpl/availability.h>
28
29 namespace PackageManager {
30 class PkgmgrSignalDummy : public IPkgmgrSignal
31 {
32   public:
33     PkgmgrSignalDummy()
34     {}
35
36     virtual ~PkgmgrSignalDummy()
37     {}
38
39     bool setPkgname(const std::string& /*name*/)
40     {
41         return false;
42     }
43
44     std::string getPkgname() const
45     {
46         return "";
47     }
48
49     std::string getCallerId() const
50     {
51         return "";
52     }
53
54     bool startJob(Jobs::InstallationType type DPL_UNUSED)
55     {
56         return false;
57     }
58
59     bool preEndJob(const std::vector<std::string>& appIdsList DPL_UNUSED)
60     {
61         return false;
62     }
63
64     bool endJob(Jobs::Exceptions::Type ecode DPL_UNUSED, const char* message DPL_UNUSED)
65     {
66         return false;
67     }
68
69     bool sendProgressInstall(int percent DPL_UNUSED)
70     {
71         return false;
72     }
73
74     bool sendProgressUninstall(int percent DPL_UNUSED)
75     {
76         return false;
77     }
78
79     bool sendIconPath(const std::string & iconpath DPL_UNUSED)
80     {
81         return false;
82     }
83 };
84 } // PkgmgrSignalDummy
85
86 #endif // WRT_PKGMGR_SIGNAL_DUMMY_H_