author | Sampo Huttunen <sampo.huttunen@nokia.com> |
Thu, 18 Nov 2010 15:46:57 +0200 (2010-11-18) | |
branch | IOP_Improvements |
changeset 44 | 97caed2372ca |
parent 38 | 5360b7ddc251 |
permissions | -rw-r--r-- |
38
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
1 |
/* |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
2 |
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
3 |
* All rights reserved. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
8 |
* |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
9 |
* Initial Contributors: |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
11 |
* |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
12 |
* Contributors: |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
13 |
* |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
14 |
* Description: Source file for CUpnpNoteHandler class. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
15 |
* |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
16 |
*/ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
17 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
18 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
19 |
// INCLUDE FILES |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
20 |
// system |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
21 |
#include <bautils.h> // BaflUtils |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
22 |
#include <eikenv.h> // CEikonEnv |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
23 |
#include <AknWaitDialog.h> // CAknWaitDialog |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
24 |
#include <StringLoader.h> // StringLoader |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
25 |
#include <aknnotewrappers.h> // CAknErrorNote |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
26 |
// upnpframework / common ui |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
27 |
#include "upnpcommonui.h" // CUPnPCommonUI |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
28 |
// command internal |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
29 |
#include <upnpcommandresources.rsg> // UpnpCommand resource file |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
30 |
#include "upnpnotehandler.h" |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
31 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
32 |
_LIT( KComponentLogfile, "upnpcommand.log"); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
33 |
#include "upnplog.h" |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
34 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
35 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
36 |
// CONSTANTS |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
37 |
_LIT( KResFileName, "\\resource\\upnpcommandresources.rsc" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
38 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
39 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
40 |
// CUpnpNoteHandler::NewL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
41 |
// Creates an instance of the implementation. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
42 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
43 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
44 |
CUpnpNoteHandler* CUpnpNoteHandler::NewL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
45 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
46 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::NewL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
47 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
48 |
// Create instance |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
49 |
CUpnpNoteHandler* self = NULL; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
50 |
self = new (ELeave) CUpnpNoteHandler(); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
51 |
CleanupStack::PushL( self ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
52 |
self->ConstructL(); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
53 |
CleanupStack::Pop( self ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
54 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
55 |
return self; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
56 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
57 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
58 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
59 |
// CUpnpNoteHandler::CUpnpNoteHandler |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
60 |
// First phase construction. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
61 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
62 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
63 |
CUpnpNoteHandler::CUpnpNoteHandler() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
64 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
65 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::Constructor" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
66 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
67 |
iWaitNote = NULL; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
68 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
69 |
// DRM note will be shown only once |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
70 |
iDrmNoteShown = EFalse; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
71 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
72 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
73 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
74 |
// Destructor. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
75 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
76 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
77 |
CUpnpNoteHandler::~CUpnpNoteHandler() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
78 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
79 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
80 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
81 |
// If wait note is running, finish it |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
82 |
if( iWaitNote ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
83 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
84 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor\ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
85 |
iWaitNote->ProcessFinishedL " ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
86 |
TRAP_IGNORE( iWaitNote->ProcessFinishedL() ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
87 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
88 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
89 |
// Un-load resource file |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
90 |
if ( iResFileOffset ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
91 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
92 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor\ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
93 |
Un-load resource file " ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
94 |
CEikonEnv::Static()->DeleteResourceFile( iResFileOffset ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
95 |
iResFileOffset = 0; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
96 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
97 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
98 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::Destructor - end" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
99 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
100 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
101 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
102 |
// CUpnpNoteHandler::ConstructL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
103 |
// Perform the second phase of two phase construction. Reserves the Upnp Fw |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
104 |
// resources (they are released when the task is destroyed). |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
105 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
106 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
107 |
void CUpnpNoteHandler::ConstructL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
108 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
109 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ConstructL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
110 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
111 |
// Get the pointer to coe env (owned by Eikon env) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
112 |
CEikonEnv* coeEnv = CEikonEnv::Static(); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
113 |
if( !coeEnv ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
114 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
115 |
User::Leave( KErrNotSupported ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
116 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
117 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
118 |
// Get the filesession reference from coe env |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
119 |
RFs& fileSession = coeEnv->FsSession(); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
120 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
121 |
// Load resource file |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
122 |
TFileName rscFileName( KResFileName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
123 |
TFileName dllName; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
124 |
Dll::FileName( dllName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
125 |
TBuf<2> drive = dllName.Left( 2 ); // Drive letter followed by ':' |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
126 |
rscFileName.Insert( 0, drive ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
127 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
128 |
// Get the exact filename of the resource file |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
129 |
BaflUtils::NearestLanguageFile( fileSession, rscFileName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
130 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
131 |
// Check if the resource file exists or not |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
132 |
if ( !BaflUtils::FileExists( fileSession, rscFileName ) ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
133 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
134 |
__LOG( "[UpnpCommand]\t Resource file does not exist!" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
135 |
User::Leave( KErrNotFound ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
136 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
137 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
138 |
// Read the resource file offset |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
139 |
iResFileOffset = coeEnv->AddResourceFileL( rscFileName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
140 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
141 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
142 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
143 |
// CUpnpNoteHandler::RunConnectingWaitNote |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
144 |
// Launches the "Connecting" wait note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
145 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
146 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
147 |
TInt CUpnpNoteHandler::RunConnectingWaitNote() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
148 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
149 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::\ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
150 |
RunConnectingWaitNote" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
151 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
152 |
TInt status = KErrNone; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
153 |
status = RunWaitNote( R_COMMAND_CONNECTING_WAIT_NOTE ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
154 |
return status; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
155 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
156 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
157 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
158 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
159 |
// CUpnpNoteHandler::ShowDrmNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
160 |
// Show "DRM protected files not supported." info note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
161 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
162 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
163 |
void CUpnpNoteHandler::ShowDrmNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
164 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
165 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowDrmNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
166 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
167 |
if( !iDrmNoteShown ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
168 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
169 |
iDrmNoteShown = ETrue; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
170 |
ShowErrorNoteL( R_COMMAND_DRM_FILE_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
171 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
172 |
else |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
173 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
174 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowDrmNoteL, skipped" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
175 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
176 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
177 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
178 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
179 |
// CUpnpNoteHandler::ShowConnectionLostNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
180 |
// Show "Connection failed." info note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
181 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
182 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
183 |
void CUpnpNoteHandler::ShowConnectionLostNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
184 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
185 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowConnectionLostNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
186 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
187 |
ShowErrorNoteL( R_COMMAND_ERR_CON_FAILED_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
188 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
189 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
190 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
191 |
// CUpnpNoteHandler::ShowLocalMSStartErrorNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
192 |
// Show "Connection failed." info note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
193 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
194 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
195 |
void CUpnpNoteHandler::ShowLocalMSStartErrorNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
196 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
197 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowLocalMSStartErrorNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
198 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
199 |
// local mediaserver refuses to start. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
200 |
// use "connection failed" - this describes the error best. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
201 |
ShowErrorNoteL( R_COMMAND_ERR_CON_FAILED_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
202 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
203 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
204 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
205 |
// CUpnpNoteHandler::ShowCopyInfoNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
206 |
// Show "%N files copied to %U" info note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
207 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
208 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
209 |
void CUpnpNoteHandler::ShowCopyInfoNoteL( TInt aCount, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
210 |
const TDesC& aServerName ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
211 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
212 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowCopyInfoNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
213 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
214 |
HBufC* infoText = NULL; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
215 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
216 |
if( aCount == 1 ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
217 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
218 |
infoText = StringLoader::LoadLC( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
219 |
R_COMMAND_INFO_COPY_EXT_ONE_TEXT, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
220 |
aServerName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
221 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
222 |
else |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
223 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
224 |
infoText = StringLoader::LoadLC( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
225 |
R_COMMAND_INFO_COPY_EXT_MANY_TEXT, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
226 |
aServerName, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
227 |
aCount ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
228 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
229 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
230 |
ShowInfoNoteL( *infoText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
231 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
232 |
CleanupStack::PopAndDestroy( infoText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
233 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
234 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
235 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
236 |
// CUpnpNoteHandler::ShowMoveInfoNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
237 |
// Show "1 file moved to %U" info note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
238 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
239 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
240 |
void CUpnpNoteHandler::ShowMoveInfoNoteL( TInt aCount, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
241 |
const TDesC& aServerName ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
242 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
243 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowMoveInfoNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
244 |
// NOTE: defect in UI spec. Missing loc text. Using |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
245 |
// "N files copied" localisation instead. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
246 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
247 |
HBufC* infoText = NULL; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
248 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
249 |
if( aCount == 1 ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
250 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
251 |
infoText = StringLoader::LoadLC( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
252 |
R_COMMAND_INFO_MOVE_EXT_ONE_TEXT, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
253 |
aServerName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
254 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
255 |
else |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
256 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
257 |
infoText = StringLoader::LoadLC( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
258 |
R_COMMAND_INFO_MOVE_EXT_MANY_TEXT, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
259 |
aServerName, |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
260 |
aCount ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
261 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
262 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
263 |
ShowInfoNoteL( *infoText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
264 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
265 |
CleanupStack::PopAndDestroy( infoText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
266 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
267 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
268 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
269 |
// CUpnpNoteHandler::ShowCopyErrorNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
270 |
// Show "Selected device does not support this operation" error note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
271 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
272 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
273 |
void CUpnpNoteHandler::ShowCopyErrorNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
274 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
275 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowCopyErrorNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
276 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
277 |
ShowErrorNoteL( R_COMMAND_ERR_GENERAL_FAILURE_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
278 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
279 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
280 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
281 |
// CUpnpNoteHandler::ShowMoveErrorNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
282 |
// Show "Selected device does not support this operation" error note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
283 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
284 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
285 |
void CUpnpNoteHandler::ShowMoveErrorNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
286 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
287 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowMoveErrorNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
288 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
289 |
ShowErrorNoteL( R_COMMAND_ERR_GENERAL_FAILURE_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
290 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
291 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
292 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
293 |
// CUpnpNoteHandler::ShowCopyDisconnectionErrorNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
294 |
// Show "Connection lost, some files may not be copied" error note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
295 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
296 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
297 |
void CUpnpNoteHandler::ShowCopyDisconnectionErrorNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
298 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
299 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::\ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
300 |
ShowCopyDisconnectionErrorNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
301 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
302 |
ShowErrorNoteL( R_COMMAND_ERR_CONN_LOST_COPY_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
303 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
304 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
305 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
306 |
// CUpnpNoteHandler::ShowMoveDisconnectionErrorNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
307 |
// Show "Connection lost. Some files might not be moved" error note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
308 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
309 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
310 |
void CUpnpNoteHandler::ShowMoveDisconnectionErrorNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
311 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
312 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::\ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
313 |
ShowMoveDisconnectionErrorNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
314 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
315 |
ShowErrorNoteL( R_COMMAND_ERR_CONN_LOST_MOVE_TEXT); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
316 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
317 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
318 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
319 |
// CUpnpNoteHandler::ShowPlaybackFailedNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
320 |
// Show "Playback failed on the remote device for unknown error. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
321 |
// Try again" info note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
322 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
323 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
324 |
void CUpnpNoteHandler::ShowPlaybackFailedNoteL() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
325 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
326 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowPlaybackFailedNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
327 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
328 |
ShowErrorNoteL( R_COMMAND_ERR_RENDERING_FAILED_UNKNOWN_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
329 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
330 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
331 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
332 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
333 |
// CUpnpNoteHandler::ShowRendererInUseNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
334 |
// Show "%U is already in use. Please try again later." - note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
335 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
336 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
337 |
void CUpnpNoteHandler::ShowRendererInUseNoteL( const TDesC& aDeviceName ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
338 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
339 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowRendererInUseNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
340 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
341 |
// Load note text |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
342 |
HBufC* textFormat = StringLoader::LoadLC( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
343 |
R_COMMAND_RENDERER_IN_USE_TEXT ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
344 |
HBufC* noteText = HBufC::NewLC( textFormat->Length() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
345 |
+ aDeviceName.Length() ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
346 |
noteText->Des().Format( textFormat->Des() , &aDeviceName ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
347 |
// Create and launch the error note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
348 |
CAknErrorNote* errorNote = new( ELeave ) CAknErrorNote; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
349 |
errorNote->ExecuteLD( *noteText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
350 |
CleanupStack::PopAndDestroy( noteText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
351 |
CleanupStack::PopAndDestroy( textFormat ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
352 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
353 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
354 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
355 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
356 |
// CUpnpNoteHandler::RunWaitNote |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
357 |
// Launches the wait note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
358 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
359 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
360 |
TInt CUpnpNoteHandler::RunWaitNote( TInt aResource ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
361 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
362 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::RunWaitNote" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
363 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
364 |
TInt status = KErrNone; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
365 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
366 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
367 |
// If the note is already showing |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
368 |
if( iWaitNote ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
369 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
370 |
status = KErrInUse; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
371 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
372 |
else |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
373 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
374 |
// Create the wait note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
375 |
iWaitNote = new CAknWaitDialog( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
376 |
( REINTERPRET_CAST( CEikDialog**, &iWaitNote ) ), ETrue ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
377 |
if( iWaitNote ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
378 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
379 |
// Execute the wait note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
380 |
TBool noteResult = EFalse; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
381 |
TRAP( status, noteResult = |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
382 |
iWaitNote->ExecuteLD( |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
383 |
aResource ) ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
384 |
if( !noteResult ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
385 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
386 |
status = KErrCancel; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
387 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
388 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
389 |
// Clean up |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
390 |
iWaitNote = NULL; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
391 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
392 |
else |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
393 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
394 |
// If we failed to allocate memory for the note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
395 |
status = KErrNoMemory; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
396 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
397 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
398 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
399 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
400 |
return status; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
401 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
402 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
403 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
404 |
// CUpnpNoteHandler::CloseWaitNote |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
405 |
// Closes the "Activating sharing" wait note. |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
406 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
407 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
408 |
void CUpnpNoteHandler::CloseWaitNote() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
409 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
410 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::CloseWaitNote" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
411 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
412 |
// If wait note is running, finish it |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
413 |
if( iWaitNote ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
414 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
415 |
TRAP_IGNORE( iWaitNote->ProcessFinishedL() ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
416 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
417 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
418 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
419 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
420 |
// CUpnpNoteHandler::ShowInfoNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
421 |
// Show info note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
422 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
423 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
424 |
void CUpnpNoteHandler::ShowInfoNoteL( const TDesC& aText ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
425 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
426 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowInfoNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
427 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
428 |
CAknInformationNote* infoNote = |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
429 |
new ( ELeave ) CAknInformationNote( ETrue ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
430 |
infoNote->ExecuteLD( aText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
431 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
432 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
433 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
434 |
// CUpnpNoteHandler::ShowErrorNoteL |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
435 |
// Show error note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
436 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
437 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
438 |
void CUpnpNoteHandler::ShowErrorNoteL( TInt aResource ) |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
439 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
440 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ShowInfoNoteL" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
441 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
442 |
// Load the string, and show the note |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
443 |
HBufC* errorText = StringLoader::LoadLC( aResource ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
444 |
CAknInformationNote* errorNote = |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
445 |
new ( ELeave ) CAknInformationNote( ETrue ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
446 |
errorNote->ExecuteLD( *errorText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
447 |
CleanupStack::PopAndDestroy( errorText ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
448 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
449 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
450 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
451 |
// CUpnpNoteHandler::ResetDrmNoteCount |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
452 |
// Drm note can shoud be shown only one in operation |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
453 |
// this reset calculator so that note can be shown again |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
454 |
// -------------------------------------------------------------------------- |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
455 |
// |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
456 |
void CUpnpNoteHandler::ResetDrmNoteCount() |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
457 |
{ |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
458 |
__LOG( "[UpnpCommand]\t CUpnpNoteHandler::ResetDrmNoteCount" ); |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
459 |
iDrmNoteShown = EFalse; |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
460 |
} |
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
461 |
|
5360b7ddc251
New development branch with e.g. rendering state machine and a simple Qt example application using it.
samhuttu
parents:
0
diff
changeset
|
462 |
// End of File |