5a0019a841c2d85233e2fdba0c520d66821c1f6a
[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 "CicoLog.h"
23
24 //--------------------------------------------------------------------------
25 /**
26  *  @brief  default constructor
27  */
28 //--------------------------------------------------------------------------
29 CicoSCWindow::CicoSCWindow()
30     : surfaceid(-1), name(""), appid(""), pid(-1), layertype(-1),
31       nodeid(-1), displayid(-1), layerid(-1), zone(""), zoneid(-1),
32       subwindow(0), eventmask(0), x(-1), y(-1), width(-1), height(-1),
33       visible(false), raise(false), active(false)
34 {
35     ICO_DBG("CicoSCWindow::CicoSCWindow Enter");
36     ICO_DBG("CicoSCWindow::CicoSCWindow Leave");
37 }
38
39 //--------------------------------------------------------------------------
40 /**
41  *  @brief  destructor
42  */
43 //--------------------------------------------------------------------------
44 CicoSCWindow::~CicoSCWindow()
45 {
46     ICO_DBG("CicoSCWindow::~CicoSCWindow Enter");
47     ICO_DBG("CicoSCWindow::~CicoSCWindow Leave");
48 }
49
50 //--------------------------------------------------------------------------
51 /**
52  *  @brief  dump log this class member variables
53  */
54 //--------------------------------------------------------------------------
55 void
56 CicoSCWindow::dump(void)
57 {
58     ICO_DBG("CicoSCWindow: surfaceid=0x%08X name=%s appid=%s pid=%d "
59             "nodeid=%d displayid=%d layerid=%d zone=%s zoneid=%d "
60             "subwindow=%d eventmask=%d x=%d y=%d width=%d height=%d "
61             "visible=%s raise=%s active=%s layertype=%x",
62             surfaceid, name.c_str(), appid.c_str(), pid, nodeid, displayid,
63             layerid, zone.c_str(), zoneid, subwindow, eventmask,
64             x, y, width, height,
65             visible ? "true" : "false", raise ? "true" : "false",
66             active ? "true" : "false", layertype);
67 }
68 // vim:set expandtab ts=4 sw=4: