45
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 - 2007 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: slider_api
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include <aknviewappui.h>
|
|
19 |
#include <eikmenub.h>
|
|
20 |
#include <avkon.hrh>
|
|
21 |
#include <akncontext.h>
|
|
22 |
#include <akntitle.h>
|
|
23 |
#include <stringloader.h>
|
|
24 |
#include <barsread.h>
|
|
25 |
#include <eikbtgpc.h>
|
|
26 |
|
|
27 |
#include "testsdksliderview.h"
|
|
28 |
#include "testsdkslidercontainer.h"
|
|
29 |
|
|
30 |
|
|
31 |
// -----------------------------------------------------------------------------
|
|
32 |
// CSliderView::CSliderView
|
|
33 |
// -----------------------------------------------------------------------------
|
|
34 |
//
|
|
35 |
CSliderView::CSliderView()
|
|
36 |
{
|
|
37 |
iSliderContainer = NULL;
|
|
38 |
}
|
|
39 |
|
|
40 |
|
|
41 |
// -----------------------------------------------------------------------------
|
|
42 |
// CSliderView::~CSliderView
|
|
43 |
// -----------------------------------------------------------------------------
|
|
44 |
//
|
|
45 |
CSliderView::~CSliderView()
|
|
46 |
{
|
|
47 |
delete iSliderContainer;
|
|
48 |
iSliderContainer = NULL;
|
|
49 |
}
|
|
50 |
// -----------------------------------------------------------------------------
|
|
51 |
// CSliderView::NewL
|
|
52 |
// -----------------------------------------------------------------------------
|
|
53 |
//
|
|
54 |
CSliderView* CSliderView::NewL()
|
|
55 |
{
|
|
56 |
CSliderView* self = CSliderView::NewLC();
|
|
57 |
CleanupStack::Pop(self);
|
|
58 |
return self;
|
|
59 |
}
|
|
60 |
|
|
61 |
// -----------------------------------------------------------------------------
|
|
62 |
// CSliderView::NewLC
|
|
63 |
// -----------------------------------------------------------------------------
|
|
64 |
//
|
|
65 |
CSliderView* CSliderView::NewLC()
|
|
66 |
{
|
|
67 |
CSliderView* self = new ( ELeave ) CSliderView();
|
|
68 |
CleanupStack::PushL(self);
|
|
69 |
self->ConstructL();
|
|
70 |
return self;
|
|
71 |
}
|
|
72 |
|
|
73 |
// -----------------------------------------------------------------------------
|
|
74 |
// CSliderView::ConstructL
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
//
|
|
77 |
void CSliderView::ConstructL()
|
|
78 |
{
|
|
79 |
|
|
80 |
}
|
|
81 |
// -----------------------------------------------------------------------------
|
|
82 |
// CSliderView::Id
|
|
83 |
// -----------------------------------------------------------------------------
|
|
84 |
//
|
|
85 |
TUid CSliderView::Id() const
|
|
86 |
{
|
|
87 |
return TUid::Uid(1);
|
|
88 |
}
|
|
89 |
|
|
90 |
// -----------------------------------------------------------------------------
|
|
91 |
// CSliderView::HandleCommandL
|
|
92 |
// -----------------------------------------------------------------------------
|
|
93 |
//
|
|
94 |
void CSliderView::HandleCommandL(TInt aCommand)
|
|
95 |
{
|
|
96 |
switch ( aCommand )
|
|
97 |
{
|
|
98 |
default:
|
|
99 |
break;
|
|
100 |
}
|
|
101 |
|
|
102 |
}
|
|
103 |
// -----------------------------------------------------------------------------
|
|
104 |
// CSliderView::DoActivateL
|
|
105 |
// -----------------------------------------------------------------------------
|
|
106 |
//
|
|
107 |
void CSliderView::DoActivateL(const TVwsViewId& /*aPrevViewId*/,
|
|
108 |
TUid /*aCustomMessageId*/, const TDesC8& /*aCustomMessage*/)
|
|
109 |
{
|
|
110 |
|
|
111 |
}
|
|
112 |
// -----------------------------------------------------------------------------
|
|
113 |
// CSliderView::DoDeactivate
|
|
114 |
// -----------------------------------------------------------------------------
|
|
115 |
//
|
|
116 |
void CSliderView::DoDeactivate()
|
|
117 |
{
|
|
118 |
|
|
119 |
}
|
|
120 |
// -----------------------------------------------------------------------------
|
|
121 |
// CSliderView::HandleStatusPaneSizeChange
|
|
122 |
// -----------------------------------------------------------------------------
|
|
123 |
//
|
|
124 |
void CSliderView::HandleStatusPaneSizeChange()
|
|
125 |
{
|
|
126 |
|
|
127 |
|
|
128 |
}
|
|
129 |
// -----------------------------------------------------------------------------
|
|
130 |
// CSliderView::SetupStatusPaneL
|
|
131 |
// -----------------------------------------------------------------------------
|
|
132 |
//
|
|
133 |
void CSliderView::SetupStatusPaneL()
|
|
134 |
{
|
|
135 |
|
|
136 |
|
|
137 |
|
|
138 |
}
|
|
139 |
// -----------------------------------------------------------------------------
|
|
140 |
// CSliderView::CleanupStatusPane
|
|
141 |
// -----------------------------------------------------------------------------
|
|
142 |
//
|
|
143 |
|
|
144 |
void CSliderView::CleanupStatusPane()
|
|
145 |
{
|
|
146 |
}
|
|
147 |
|
|
148 |
// -----------------------------------------------------------------------------
|
|
149 |
// CSliderView::CreateContainerL
|
|
150 |
// -----------------------------------------------------------------------------
|
|
151 |
//
|
|
152 |
CSliderContainer* CSliderView::CreateContainerL()
|
|
153 |
{
|
|
154 |
return NULL;
|
|
155 |
}
|
|
156 |
|