ef28bcba1afe2c490dc7d86f788ba4676d683ace
[profile/ivi/automotive-message-broker.git] / plugins / demosink / demosinkplugin.h
1 /*
2 Copyright (C) 2012 Intel Corporation
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18
19 #ifndef WHEELPLUGIN_H
20 #define WHEELPLUGIN_H
21
22 #include <abstractsink.h>
23 #include <string>
24
25 using namespace std;
26
27 class DemoSink: public AbstractSink
28 {
29
30 public:
31         DemoSink(AbstractRoutingEngine* re, map<string, string> config);
32         ~DemoSink();
33         
34         const string uuid();
35         
36         void propertyChanged( AbstractPropertyType* value);
37         void supportedChanged(const PropertyList &);
38
39         friend class WheelPrivate;      
40         
41 private:
42
43         PropertySet mRequests;
44 };
45
46 class DemoSinkManager: public AbstractSinkManager
47 {
48 public:
49         DemoSinkManager(AbstractRoutingEngine* engine, map<string, string> config)
50         :AbstractSinkManager(engine, config)
51         {
52                 DemoSink* sink = new DemoSink(routingEngine, config);
53         }
54
55         void setConfiguration(map<string, string> config)
56         {
57
58         }
59 };
60
61 #endif // WHEELPLUGIN_H