2 * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
4 * This program is licensed under the terms and conditions of the
5 * Apache License, version 2.0. The full text of the Apache License is at
6 * http://www.apache.org/licenses/LICENSE-2.0
10 //==========================================================================
12 * @file CicoCommonComponent.h
14 * @brief This file is definition of CicoCommonComponent class
16 //==========================================================================
17 #ifndef __CICO_COMMON_COMPONENT_H__
18 #define __CICO_COMMON_COMPONENT_H__
20 #include <Elementary.h>
25 #include "CicoComponentInterface.h"
26 #include "CicoModuleImplementation.h"
28 //==========================================================================
30 * @brief This class provide the common component interfaces
32 //==========================================================================
33 class CicoCommonComponent : public CicoComponentInterface
36 // default constructor
37 CicoCommonComponent();
40 virtual ~CicoCommonComponent();
42 // terminate component
43 virtual bool Terminate(void);
46 virtual void Show(void);
49 virtual void Hide(void);
51 // set position of component
52 virtual void SetPos(int x, int y);
54 // set size of component
55 virtual void SetSize(int w, int h);
59 void PackModule(std::shared_ptr<CicoCommonModule> module);
62 void UnpackModule(std::shared_ptr<CicoCommonModule> module);
65 int posx_; /// position x
66 int posy_; /// position y
67 int width_; /// componet width
68 int height_; /// componet height
69 std::list<std::shared_ptr<CicoCommonModule> > modulelist_; ///module list
71 #endif // __CICO_COMMON_COMPONENT_H__
72 // vim: set expandtab ts=4 sw=4: