wlanutilities/wlanlogin/wlanloginapp/src/wlanloginmainwindow.cpp
author hgs
Mon, 23 Aug 2010 13:30:09 +0300
changeset 53 bdc64aa9b954
parent 39 7b3e49e4608a
permissions -rw-r--r--
201033
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
* Wlan Login main window class implementation
hgs
parents:
diff changeset
    16
* 
hgs
parents:
diff changeset
    17
*/
hgs
parents:
diff changeset
    18
hgs
parents:
diff changeset
    19
// System includes
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
//User includes
hgs
parents:
diff changeset
    22
hgs
parents:
diff changeset
    23
#include "wlanloginmainwindow.h"
hgs
parents:
diff changeset
    24
#include "wlanloginengine.h"
hgs
parents:
diff changeset
    25
#include "wlanloginview.h"
hgs
parents:
diff changeset
    26
#include "wlanloginapplication.h"
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
#include "OstTraceDefinitions.h"
hgs
parents:
diff changeset
    29
#ifdef OST_TRACE_COMPILER_IN_USE
hgs
parents:
diff changeset
    30
#include "wlanloginmainwindowTraces.h"
hgs
parents:
diff changeset
    31
#endif
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
/*!
hgs
parents:
diff changeset
    34
    \class WlanLoginMainWindow
hgs
parents:
diff changeset
    35
    \brief WLAN Login main window class implementation.
hgs
parents:
diff changeset
    36
*/
hgs
parents:
diff changeset
    37
hgs
parents:
diff changeset
    38
/*!
hgs
parents:
diff changeset
    39
    Constructor.
hgs
parents:
diff changeset
    40
 */
hgs
parents:
diff changeset
    41
WlanLoginMainWindow::WlanLoginMainWindow(WlanLoginApplication* appRef) :
hgs
parents:
diff changeset
    42
    mAppRef(appRef),
hgs
parents:
diff changeset
    43
    mLoginView(NULL)
hgs
parents:
diff changeset
    44
{
hgs
parents:
diff changeset
    45
    OstTraceFunctionEntry0(WLANLOGINMAINWINDOW_WLANLOGINMAINWINDOW_ENTRY);
hgs
parents:
diff changeset
    46
    
hgs
parents:
diff changeset
    47
    addLoginView();
hgs
parents:
diff changeset
    48
    setCurrentView(mLoginView);
hgs
parents:
diff changeset
    49
    show();
hgs
parents:
diff changeset
    50
    
hgs
parents:
diff changeset
    51
    OstTraceFunctionExit0(WLANLOGINMAINWINDOW_WLANLOGINMAINWINDOW_EXIT);
hgs
parents:
diff changeset
    52
}
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
/*!
hgs
parents:
diff changeset
    56
    Destructor.
hgs
parents:
diff changeset
    57
 */
hgs
parents:
diff changeset
    58
WlanLoginMainWindow::~WlanLoginMainWindow()
hgs
parents:
diff changeset
    59
{
hgs
parents:
diff changeset
    60
    OstTraceFunctionEntry0(WLANLOGINMAINWINDOW_DESTRUCTOR_ENTRY);
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
    OstTraceFunctionExit0(WLANLOGINMAINWINDOW_DESTRUCTOR_EXIT);
hgs
parents:
diff changeset
    63
}
hgs
parents:
diff changeset
    64
hgs
parents:
diff changeset
    65
hgs
parents:
diff changeset
    66
/*!
hgs
parents:
diff changeset
    67
    This function creates login view
hgs
parents:
diff changeset
    68
 */
hgs
parents:
diff changeset
    69
void WlanLoginMainWindow::addLoginView()
hgs
parents:
diff changeset
    70
{
hgs
parents:
diff changeset
    71
    OstTraceFunctionEntry0(WLANLOGINMAINWINDOW_ADDLOGINVIEW_ENTRY);
hgs
parents:
diff changeset
    72
53
hgs
parents: 39
diff changeset
    73
    mLoginView = new WlanLoginView(this);
39
hgs
parents:
diff changeset
    74
    addView(mLoginView);
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
    OstTraceFunctionExit0(WLANLOGINMAINWINDOW_ADDLOGINVIEW_EXIT);
hgs
parents:
diff changeset
    77
}
hgs
parents:
diff changeset
    78
hgs
parents:
diff changeset
    79
hgs
parents:
diff changeset
    80
/*!
hgs
parents:
diff changeset
    81
    This function returns pointer to login view
hgs
parents:
diff changeset
    82
 */
hgs
parents:
diff changeset
    83
WlanLoginView* WlanLoginMainWindow::loginView() const
hgs
parents:
diff changeset
    84
{
hgs
parents:
diff changeset
    85
    OstTraceFunctionEntry0(WLANLOGINMAINWINDOW_LOGINVIEW_ENTRY); 
hgs
parents:
diff changeset
    86
    OstTraceFunctionExit0(WLANLOGINMAINWINDOW_LOGINVIEW_EXIT);
hgs
parents:
diff changeset
    87
    
hgs
parents:
diff changeset
    88
    return mLoginView;
hgs
parents:
diff changeset
    89
}
53
hgs
parents: 39
diff changeset
    90
hgs
parents: 39
diff changeset
    91
/*!
hgs
parents: 39
diff changeset
    92
    This function returns pointer to application instance
hgs
parents: 39
diff changeset
    93
 */
hgs
parents: 39
diff changeset
    94
WlanLoginApplication* WlanLoginMainWindow::application() const
hgs
parents: 39
diff changeset
    95
{
hgs
parents: 39
diff changeset
    96
    OstTraceFunctionEntry0(WLANLOGINMAINWINDOW_APPLICATION_ENTRY); 
hgs
parents: 39
diff changeset
    97
    OstTraceFunctionExit0(WLANLOGINMAINWINDOW_APPLICATION_EXIT);
hgs
parents: 39
diff changeset
    98
    
hgs
parents: 39
diff changeset
    99
    return mAppRef;
hgs
parents: 39
diff changeset
   100
}
hgs
parents: 39
diff changeset
   101