coreapplicationuis/accfwuinotifier/src/AccFwUiNoteNotifier.cpp
changeset 0 2e3d3ce01487
child 21 c4cbaa4fb734
child 33 332e7bf3b42f
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implementation of information note about connected accessory
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <featmgr.h>
       
    21 #include <accfwnoteuinotifier.rsg>
       
    22 #include <data_caging_path_literals.hrh> 
       
    23 #include <aknnotewrappers.h>
       
    24 #include <SecondaryDisplay/SecondaryDisplayAccFwAPI.h>
       
    25 #include <bautils.h>
       
    26 
       
    27 #include "AccFwUiNoteNotifier.h"
       
    28 #include "acc_debug.h"
       
    29 
       
    30 // EXTERNAL DATA STRUCTURES
       
    31 
       
    32 // EXTERNAL FUNCTION PROTOTYPES
       
    33 
       
    34 // CONSTANTS
       
    35 const TUid KScreenOutputChannel = { 0x10282E0A };
       
    36 
       
    37 _LIT( KAccFwUiNotifierResource, "accfwnoteuinotifier.rsc" );
       
    38 // MACROS
       
    39 
       
    40 // LOCAL CONSTANTS AND MACROS
       
    41 
       
    42 // MODULE DATA STRUCTURES
       
    43 
       
    44 // LOCAL FUNCTION PROTOTYPES
       
    45 
       
    46 // FORWARD DECLARATIONS
       
    47 
       
    48 // ============================= LOCAL FUNCTIONS ===============================
       
    49 
       
    50 // ============================ MEMBER FUNCTIONS ===============================
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // CAccFwUiNoteNotifier::CAccFwUiNoteNotifier
       
    54 // C++ default constructor can NOT contain any code, that
       
    55 // might leave.
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 CAccFwUiNoteNotifier::CAccFwUiNoteNotifier()
       
    59 	: CActive( EPriorityStandard)
       
    60     {
       
    61     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::CAccFwUiNoteNotifier()" );
       
    62 
       
    63     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::CAccFwUiNoteNotifier() - return void" );
       
    64     }
       
    65 
       
    66 // Destructor
       
    67 CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier()
       
    68     {
       
    69     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::~CAccFwUiNoteNotifier()" );
       
    70 
       
    71     delete iNote;
       
    72     delete iNoteText;
       
    73     CActive::Cancel();
       
    74     
       
    75     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccPolAccessoryPolicy::~CAccFwUiNoteNotifier() - return void" );
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // CAccFwUiNoteNotifier::ConstructL() 
       
    80 // Symbian 2nd phase constructor can leave.
       
    81 // -----------------------------------------------------------------------------
       
    82 //
       
    83 void CAccFwUiNoteNotifier::ConstructL()
       
    84     {
       
    85     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::ConstructL()" );
       
    86 
       
    87     //get pointer to CEikonEnv
       
    88 	iCoeEnv = CEikonEnv::Static();    
       
    89 
       
    90     if ( !iCoeEnv )
       
    91         {
       
    92         User::Leave( KErrGeneral );        
       
    93         }
       
    94 
       
    95 	//Open resource file
       
    96     TFileName fileName;
       
    97     fileName.Zero();
       
    98 
       
    99     TFileName drivePath;
       
   100     Dll::FileName( drivePath );
       
   101 
       
   102     fileName.Append( TParsePtrC( drivePath ).Drive() );
       
   103     fileName.Append( KDC_RESOURCE_FILES_DIR );
       
   104     fileName.Append( KAccFwUiNotifierResource );
       
   105 
       
   106     BaflUtils::NearestLanguageFile( iCoeEnv->FsSession(), fileName );
       
   107 
       
   108 	//handle to resource file
       
   109     iResourceFileOffset = iCoeEnv->AddResourceFileL( fileName );
       
   110 
       
   111     //add to scheduler
       
   112     CActiveScheduler::Add( this );
       
   113     
       
   114     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::ConstructL() - return void" );
       
   115     }
       
   116 
       
   117 // -----------------------------------------------------------------------------
       
   118 // CAccFwUiNoteNotifier::NewL() 
       
   119 // Two-phased constructor.
       
   120 // -----------------------------------------------------------------------------
       
   121 //
       
   122 CAccFwUiNoteNotifier* CAccFwUiNoteNotifier::NewL()
       
   123     {
       
   124     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::NewL()" );
       
   125 
       
   126     CAccFwUiNoteNotifier* self = new ( ELeave ) CAccFwUiNoteNotifier;
       
   127     
       
   128     CleanupStack::PushL( self );
       
   129     self->ConstructL();
       
   130     CleanupStack::Pop( self );
       
   131 
       
   132     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::CAccFwUiNoteNotifier::NewL() - return" );
       
   133     return self;
       
   134     }
       
   135 
       
   136 // -----------------------------------------------------------------------------
       
   137 // CAccFwUiNoteNotifier::Release()
       
   138 // (other items were commented in a header).
       
   139 // -----------------------------------------------------------------------------
       
   140 //
       
   141 void CAccFwUiNoteNotifier::Release()
       
   142     {
       
   143     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Release() - enter" );
       
   144 
       
   145     if ( iResourceFileOffset )
       
   146         {
       
   147         iCoeEnv->DeleteResourceFile( iResourceFileOffset );
       
   148         }
       
   149 
       
   150     iCoeEnv = NULL; // This is not owned, pointer needs to be zeroed
       
   151 
       
   152     delete this;
       
   153 
       
   154     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Release() - return" );
       
   155     }
       
   156 
       
   157 // -----------------------------------------------------------------------------
       
   158 // CAccFwUiNoteNotifier::RegisterL()
       
   159 // (other items were commented in a header).
       
   160 // -----------------------------------------------------------------------------
       
   161 //
       
   162 CAccFwUiNoteNotifier::TNotifierInfo CAccFwUiNoteNotifier::RegisterL()
       
   163     {
       
   164     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RegisterL() - enter" );
       
   165     iInfo.iUid = KAccFwUiNoteNotifierUid;
       
   166     iInfo.iChannel = KScreenOutputChannel;
       
   167     iInfo.iPriority = ENotifierPriorityHigh;
       
   168     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RegisterL() - return" );
       
   169     return iInfo;
       
   170     }
       
   171 
       
   172 // -----------------------------------------------------------------------------
       
   173 // CAccFwUiNoteNotifier::Info()
       
   174 // (other items were commented in a header).
       
   175 // -----------------------------------------------------------------------------
       
   176 //
       
   177 CAccFwUiNoteNotifier::TNotifierInfo CAccFwUiNoteNotifier::Info() const
       
   178     {
       
   179     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Info() - enter" );
       
   180     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Info() - return" );
       
   181     return iInfo;
       
   182     }
       
   183 
       
   184 // -----------------------------------------------------------------------------
       
   185 // CAccFwUiNoteNotifier::StartL()
       
   186 // (other items were commented in a header).
       
   187 // -----------------------------------------------------------------------------
       
   188 //
       
   189 TPtrC8 CAccFwUiNoteNotifier::StartL( const TDesC8& /*aBuffer*/ )
       
   190     {
       
   191 	API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - enter" );
       
   192     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - return" );
       
   193     return KNullDesC8();
       
   194     }
       
   195 
       
   196 // -----------------------------------------------------------------------------
       
   197 // CAccFwUiNoteNotifier::StartL()
       
   198 // (other items were commented in a header).
       
   199 // -----------------------------------------------------------------------------
       
   200 //
       
   201 void CAccFwUiNoteNotifier::StartL(
       
   202     const TDesC8& aBuffer, 
       
   203     TInt /*aReplySlot*/,
       
   204     const RMessagePtr2& aMessage)
       
   205     {    
       
   206     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - enter" );
       
   207 
       
   208     // Heap buffer for default text
       
   209     HBufC* defaultText = NULL;
       
   210     TBool showNote = EFalse;
       
   211 
       
   212     if ( aBuffer.Length() )
       
   213         {
       
   214 		API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default accessory selection or headphones information" );
       
   215 
       
   216     	TInt value( 0 );
       
   217     	TPckg<TInt> pckg( value );
       
   218     	pckg.Copy( aBuffer );
       
   219 
       
   220    		//get "default enhancement" string resource
       
   221 		API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read default enhancement string" );
       
   222         defaultText = iCoeEnv->AllocReadResourceLC( R_TEXT_DEFAULT_ENHANC );
       
   223 
       
   224   		TPtrC enhancement;
       
   225   		TBool enhancementOk( ETrue );
       
   226 
       
   227   		if ( value != 0 )
       
   228   		    {
       
   229 			API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default selection" );
       
   230 
       
   231   			enhancementOk = EFalse;
       
   232             HBufC8* literals = iCoeEnv->AllocReadResourceAsDes8L( R_SELECTION_DIALOG_LITERALS );
       
   233             TResourceReader reader;
       
   234         	reader.SetBuffer( literals );
       
   235 
       
   236 			TInt count( reader.ReadInt16() );
       
   237 			API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read literals, count %d", count );
       
   238 
       
   239 			// Find correct accessory literal
       
   240 			for ( TInt i = 0; i < count; i++ )
       
   241 			    {
       
   242 				//read from resource
       
   243 				TUint32 index( reader.ReadUint32() );
       
   244 				API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read literal, index %d", index );
       
   245 
       
   246 				if ( index == value )
       
   247 				    {
       
   248 					API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Literal found!" );
       
   249 					// Literal found
       
   250 					enhancement.Set( reader.ReadTPtrC() );
       
   251 					enhancementOk = ETrue;
       
   252 					break;
       
   253 				    }
       
   254 				else
       
   255 				    {
       
   256 					API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Not found!" );
       
   257 					reader.ReadTPtrC();
       
   258 				    }
       
   259 			    }
       
   260 			    
       
   261 			delete literals;
       
   262   		    }
       
   263 
       
   264 		if ( enhancementOk )
       
   265 		    {
       
   266 			API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Enhancement OK!" );
       
   267 			HBufC* noteStr = NULL;
       
   268 
       
   269 			// Headphones...
       
   270 			if ( value == 0x08 || value == 0x40 || value == 0 )
       
   271 			    {
       
   272 				API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Show headphones information!" );
       
   273 
       
   274 				// Default enhancement string if needed
       
   275 				if ( value != 0 )
       
   276 				    {
       
   277 					API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Show also default information!" );
       
   278 				 	noteStr = HBufC::NewL( defaultText->Length() + enhancement.Length() + 3 );
       
   279 
       
   280 				 	TPtr ptr( noteStr->Des() );	
       
   281 					ptr.Append( defaultText->Des() );
       
   282 					ptr.Append( ' ' );
       
   283 					ptr.Append( enhancement );
       
   284 					API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default string ready!" );
       
   285 				    }
       
   286 
       
   287 				API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Read use phone mic string!" );
       
   288                 // Read resource use phone mic and default enhancement text...
       
   289 		   	    HBufC* usePhoneMicTextHolder = iCoeEnv->AllocReadResourceLC( R_TEXT_HEADPHONES_MIC );
       
   290 				
       
   291 				TBool chekcNoteStr( EFalse );
       
   292 				if ( noteStr )
       
   293 				    {
       
   294 					API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Add phone mic string to default accessory string!" );
       
   295 					CleanupStack::PushL( noteStr );
       
   296 					HBufC* temp = noteStr->ReAllocL( noteStr->Length() + 2 + usePhoneMicTextHolder->Length() + 1 );
       
   297 					CleanupStack::Pop( noteStr );
       
   298 					noteStr = temp;
       
   299 					chekcNoteStr = ETrue;
       
   300 					}
       
   301 				else
       
   302 				    {
       
   303 					API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Only use phone mic string!" );
       
   304 					noteStr = HBufC::NewL( usePhoneMicTextHolder->Length() + 1 );
       
   305 				    }
       
   306 
       
   307 			 	TPtr ptr( noteStr->Des() );	
       
   308 				
       
   309 				
       
   310 				if( chekcNoteStr )
       
   311 					{
       
   312 					ptr.Append( _L( ". " ) );
       
   313 					ptr.Append( usePhoneMicTextHolder->Des() );
       
   314 					}
       
   315                 else
       
   316                 	{
       
   317                 	ptr.Append( usePhoneMicTextHolder->Des() );
       
   318                 	}
       
   319                 // Cleanup
       
   320                 CleanupStack::PopAndDestroy( usePhoneMicTextHolder );
       
   321 
       
   322 				API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - String ready!" );
       
   323 			    }
       
   324 			else
       
   325 			    {
       
   326 				API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Create default accessory text!" );
       
   327 				//only default accessory text
       
   328 				noteStr = HBufC::NewL( defaultText->Length() + enhancement.Length() + 1 );
       
   329             	TPtr ptr( noteStr->Des() );
       
   330 			
       
   331 				ptr.Append( defaultText->Des() );
       
   332 				ptr.Append( ' ' );
       
   333 				ptr.Append( enhancement );
       
   334 				API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Default accessory text ready!" );
       
   335 			    }
       
   336 
       
   337             // Pass string to member string and free local copies
       
   338             CleanupStack::PopAndDestroy( defaultText );
       
   339             CleanupStack::PushL( noteStr );
       
   340             iNoteText = HBufC::NewL( noteStr->Length() );
       
   341             TPtr ptr( iNoteText->Des() );
       
   342             ptr.Append( noteStr->Des() );
       
   343             CleanupStack::PopAndDestroy( noteStr );
       
   344             showNote = ETrue;
       
   345 		    }
       
   346 		else
       
   347 		    {
       
   348 			API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - No note" );
       
   349             // No need to check this one, always set into cleanup stack
       
   350             CleanupStack::PopAndDestroy( defaultText );
       
   351             }
       
   352         }
       
   353     else
       
   354         {
       
   355         // Read resource string and adds heap buffer into cleanup stack.
       
   356         // This needs to be before creating 'note' for correct cleanup handling
       
   357         defaultText = iCoeEnv->AllocReadResourceLC( R_TEXT_UNSUPP_ACCESSORY_CONNECTED );
       
   358         iNoteText = HBufC::NewL( defaultText->Length() );
       
   359         TPtr ptr( iNoteText->Des() );
       
   360         ptr.Append( defaultText->Des() );
       
   361         CleanupStack::PopAndDestroy( defaultText );
       
   362         showNote = ETrue;
       
   363         }
       
   364 
       
   365     iMessage = aMessage;
       
   366     if( showNote )
       
   367         {
       
   368         if ( FeatureManager::FeatureSupported( KFeatureIdCoverDisplay ) )
       
   369             {
       
   370     		API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - Cover UI supported" );
       
   371             iPublishNote = ETrue;
       
   372             }
       
   373 
       
   374     	iIsCancelled = EFalse;
       
   375         SetActive();
       
   376         TRequestStatus* status = &iStatus;
       
   377         User::RequestComplete( status, KErrNone ); // RunL() function will get called
       
   378         }
       
   379     else
       
   380         {
       
   381         iMessage.Complete( KErrNone ); // Just complete the message
       
   382         }
       
   383                 
       
   384     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - return" );
       
   385     }
       
   386 
       
   387 // -----------------------------------------------------------------------------
       
   388 // CAccFwUiNoteNotifier::RunL()
       
   389 // (other items were commented in a header).
       
   390 // -----------------------------------------------------------------------------
       
   391 
       
   392 void CAccFwUiNoteNotifier::RunL()
       
   393     {
       
   394     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RunL() - enter" );
       
   395 
       
   396 	if ( iIsCancelled )
       
   397 	    {
       
   398 		return;	
       
   399 	    }
       
   400     
       
   401     // Create note
       
   402     iNote = new ( ELeave ) CAknNoteDialog(
       
   403         CAknNoteDialog::ENoTone,
       
   404         CAknNoteDialog::ELongTimeout );
       
   405 
       
   406     iNote->PrepareLC( R_ACCFWUINOTIFIER_INFORMATION_NOTE ); // Adds to CleanupStack
       
   407 
       
   408     if ( iPublishNote )
       
   409         {
       
   410         iNote->PublishDialogL( ECmdShowAccessoryNotSupportedNote, KCatAccFw );
       
   411         iPublishNote = EFalse;
       
   412         }
       
   413 
       
   414     iNote->SetTextL( *iNoteText );
       
   415     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::StartL() - iNote->RunLD()!" );
       
   416     iNote->RunLD();
       
   417     iNote = NULL;
       
   418     delete iNoteText;
       
   419     iNoteText = NULL;
       
   420 
       
   421     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RunL() - Complete message" );
       
   422 	iMessage.Complete( KErrNone );
       
   423 
       
   424     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RunL() - return" );
       
   425     }
       
   426 
       
   427 // -----------------------------------------------------------------------------
       
   428 // CAccFwUiNoteNotifier::RunError()
       
   429 // (other items were commented in a header).
       
   430 // -----------------------------------------------------------------------------
       
   431 TInt CAccFwUiNoteNotifier::RunError(TInt aError)
       
   432     {
       
   433     API_TRACE_1( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RunError() - %d", aError );
       
   434     if( !iMessage.IsNull() )
       
   435         {
       
   436         iMessage.Complete( aError );
       
   437         }
       
   438     aError = KErrNone;
       
   439     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::RunError() - return" );
       
   440     return aError;
       
   441     }
       
   442     
       
   443 // -----------------------------------------------------------------------------
       
   444 // CAccFwUiNoteNotifier::DoCancel()
       
   445 // (other items were commented in a header).
       
   446 // -----------------------------------------------------------------------------
       
   447 void CAccFwUiNoteNotifier::DoCancel()
       
   448     {
       
   449     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::DoCancel() - enter" );
       
   450     if( !iMessage.IsNull() )
       
   451         {
       
   452         iMessage.Complete( KErrCancel );
       
   453         }
       
   454     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::DoCancel() - return" );
       
   455     }
       
   456     
       
   457 // -----------------------------------------------------------------------------
       
   458 // CAccFwUiNoteNotifier::Cancel()
       
   459 // (other items were commented in a header).
       
   460 // -----------------------------------------------------------------------------
       
   461 //
       
   462 void CAccFwUiNoteNotifier::Cancel()
       
   463     {
       
   464     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - enter" );
       
   465 
       
   466     iIsCancelled = ETrue;
       
   467     
       
   468     if ( iNote )
       
   469         {
       
   470 	   // Cancel active object, delete dialog and free resources
       
   471         if ( IsActive() )
       
   472             {
       
   473             CActive::Cancel();    
       
   474             }
       
   475 	    delete iNote;
       
   476 	    iNote = NULL;
       
   477         delete iNoteText;
       
   478         iNoteText = NULL;
       
   479 
       
   480         API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - Complete message with Cancel" );
       
   481         iMessage.Complete( KErrCancel );
       
   482         }
       
   483 
       
   484     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::Cancel() - return" );
       
   485     }
       
   486 
       
   487 // -----------------------------------------------------------------------------
       
   488 // CAccFwUiNoteNotifier::UpdateL()
       
   489 // (other items were commented in a header).
       
   490 // -----------------------------------------------------------------------------
       
   491 //
       
   492 TPtrC8 CAccFwUiNoteNotifier::UpdateL( const TDesC8& /*aBuffer*/ )
       
   493     {
       
   494     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::UpdateL() - enter" );
       
   495     API_TRACE_( "[AccFW: ACCFWUINOTIFIER] CAccFwUiNoteNotifier::UpdateL() - return" );
       
   496     return KNullDesC8();
       
   497     }
       
   498 
       
   499 //  End of File