41a95f763c7169afb630197540859fb79b39b2c4
[profile/ivi/ico-uxf-homescreen.git] / lib / system-controller / CicoSCWindow.cpp
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
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
7  *
8  */
9
10 //==========================================================================
11 /**
12  *  @file   CicoSCWindow.h
13  *
14  *  @brief  This file is implementation of CicoSCWindow class
15  */
16 //==========================================================================
17
18 #include <string>
19 using namespace std;
20
21 #include "CicoSCWindow.h"
22 #include "CicoSCWlWinMgrIF.h"
23 #include "CicoLog.h"
24
25 //--------------------------------------------------------------------------
26 /**
27  *  @brief  default constructor
28  */
29 //--------------------------------------------------------------------------
30 CicoSCWindow::CicoSCWindow()
31     : surfaceid(-1), name(""), appid(""), pid(-1),
32       nodeid(-1), displayid(-1), layerid(-1), zone(""), zoneid(-1),
33       subwindow(0), eventmask(0), srcwidth(0), srcheight(0), x(-1), y(-1),
34       width(-1), height(-1), visible(false), raise(false), active(false)
35 {
36 //    ICO_TRA("CicoSCWindow::CicoSCWindow Enter");
37 //    ICO_TRA("CicoSCWindow::CicoSCWindow Leave");
38 }
39
40 //--------------------------------------------------------------------------
41 /**
42  *  @brief  destructor
43  */
44 //--------------------------------------------------------------------------
45 CicoSCWindow::~CicoSCWindow()
46 {
47     ICO_TRA("CicoSCWindow::~CicoSCWindow Enter");
48     CicoSCWlWinMgrIF::wlIviCtrlRemoveSurface(surfaceid);
49     ICO_TRA("CicoSCWindow::~CicoSCWindow Leave");
50 }
51
52 //--------------------------------------------------------------------------
53 /**
54  *  @brief  dump log this class member variables
55  */
56 //--------------------------------------------------------------------------
57 void
58 CicoSCWindow::dump(void)
59 {
60     ICO_DBG("CicoSCWindow: surfaceid=0x%08X name=%s appid=%s pid=%d "
61             "nodeid=%d displayid=%d layerid=%d zone=%s zoneid=%d "
62             "subwindow=%d eventmask=%d x=%d y=%d width=%d height=%d "
63             "visible=%s raise=%s active=%s",
64             surfaceid, name.c_str(), appid.c_str(), pid, nodeid, displayid,
65             layerid, zone.c_str(), zoneid, subwindow, eventmask,
66             x, y, width, height,
67             visible ? "true" : "false", raise ? "true" : "false",
68             active ? "true" : "false");
69 }
70 // vim:set expandtab ts=4 sw=4: