45
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* Definition file for class ClockSettingsViewPlugin.
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
// System includes
|
|
19 |
#include <QtPlugin>
|
|
20 |
|
|
21 |
// User includes
|
|
22 |
#include "clockregionalsettingsview.h"
|
|
23 |
#include "clocksettingsviewplugin.h"
|
57
|
24 |
#include "OstTraceDefinitions.h"
|
|
25 |
#ifdef OST_TRACE_COMPILER_IN_USE
|
|
26 |
#include "clocksettingsviewpluginTraces.h"
|
|
27 |
#endif
|
|
28 |
|
45
|
29 |
|
|
30 |
/*!
|
|
31 |
\class ClockSettingsViewPlugin
|
|
32 |
|
|
33 |
\brief The class ClockSettingsViewPlugin is a plugin to show
|
|
34 |
clock settings View
|
|
35 |
*/
|
|
36 |
|
|
37 |
/*!
|
|
38 |
Constructor.
|
|
39 |
*/
|
|
40 |
ClockSettingsViewPlugin::ClockSettingsViewPlugin()
|
|
41 |
{
|
57
|
42 |
OstTraceFunctionEntry0( CLOCKSETTINGSVIEWPLUGIN_CLOCKSETTINGSVIEWPLUGIN_ENTRY );
|
|
43 |
OstTraceFunctionExit0( CLOCKSETTINGSVIEWPLUGIN_CLOCKSETTINGSVIEWPLUGIN_EXIT );
|
45
|
44 |
}
|
|
45 |
|
|
46 |
/*!
|
|
47 |
Destructor.
|
|
48 |
*/
|
|
49 |
ClockSettingsViewPlugin::~ClockSettingsViewPlugin()
|
|
50 |
{
|
57
|
51 |
OstTraceFunctionEntry0( DUP1_CLOCKSETTINGSVIEWPLUGIN_CLOCKSETTINGSVIEWPLUGIN_ENTRY );
|
|
52 |
OstTraceFunctionExit0( DUP1_CLOCKSETTINGSVIEWPLUGIN_CLOCKSETTINGSVIEWPLUGIN_EXIT );
|
45
|
53 |
}
|
|
54 |
|
|
55 |
/*!
|
|
56 |
Launch the clock regional settings view.
|
|
57 |
*/
|
|
58 |
void ClockSettingsViewPlugin::launchRegionalSettingsView()
|
|
59 |
{
|
57
|
60 |
OstTraceFunctionEntry0( CLOCKSETTINGSVIEWPLUGIN_LAUNCHREGIONALSETTINGSVIEW_ENTRY );
|
45
|
61 |
//The view is removed from main window and deleted once you select back on view
|
|
62 |
ClockRegionalSettingsView *view = new ClockRegionalSettingsView();
|
|
63 |
view->showView();
|
57
|
64 |
OstTraceFunctionExit0( CLOCKSETTINGSVIEWPLUGIN_LAUNCHREGIONALSETTINGSVIEW_EXIT );
|
45
|
65 |
}
|
|
66 |
|
|
67 |
Q_EXPORT_PLUGIN2(clocksettingsviewplugin, ClockSettingsViewPlugin)
|
|
68 |
|
|
69 |
// End of file --Don't remove this
|