diff -r c743ef5928ba -r f966699dea19 idlehomescreen/nativeuicontroller/src/aidialogrenderer.cpp --- a/idlehomescreen/nativeuicontroller/src/aidialogrenderer.cpp Tue Feb 02 00:04:13 2010 +0200 +++ b/idlehomescreen/nativeuicontroller/src/aidialogrenderer.cpp Fri Feb 19 22:42:37 2010 +0200 @@ -15,13 +15,16 @@ * */ - +// System includes #include -#include -#include #include #include #include + +// User includes +#include +#include +#include #include #include "aidialogrenderer.h" #include "ainativeuiplugins.h" @@ -32,7 +35,11 @@ using namespace AiNativeUiController; // ======== MEMBER FUNCTIONS ======== - +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::NewLC() +// +// ---------------------------------------------------------------------------- +// CAiDialogRenderer* CAiDialogRenderer::NewLC() { CAiDialogRenderer* self = new( ELeave ) CAiDialogRenderer; @@ -40,25 +47,37 @@ return self; } - +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::~CAiDialogRenderer() +// +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::~CAiDialogRenderer() { delete iDialog; delete iText; } - +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::CAiDialogRenderer() +// +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::CAiDialogRenderer() { } - -void CAiDialogRenderer::DoPublishL( MAiPropertyExtension& aPlugin, - TInt aContent, - TInt aResource, - TInt /*aIndex*/ ) +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::DoPublishL() +// +// ---------------------------------------------------------------------------- +// +void CAiDialogRenderer::DoPublishL( CHsContentPublisher& aPlugin, + TInt aContent, TInt aResource, TInt /*aIndex*/ ) { - if( aPlugin.PublisherInfoL()->iUid == KDeviceStatusPluginUid ) + const THsPublisherInfo& info( aPlugin.PublisherInfo() ); + + if( info.Uid() == KDeviceStatusPluginUid ) { switch( aContent ) { @@ -99,7 +118,7 @@ User::Leave( KErrNotFound ); break; } - }; + } } else { @@ -107,8 +126,13 @@ } } -void CAiDialogRenderer::DoCleanL( MAiPropertyExtension& /*aPlugin*/, - TInt aContent ) +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::DoCleanL() +// +// ---------------------------------------------------------------------------- +// +void CAiDialogRenderer::DoCleanL( CHsContentPublisher& /*aPlugin*/, + TInt aContent ) { switch( aContent ) { @@ -124,11 +148,14 @@ User::Leave( KErrNotFound ); break; } - }; - + } } - +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::ShowDialogL() +// +// ---------------------------------------------------------------------------- +// void CAiDialogRenderer::ShowDialogL() { if ( iDialog ) @@ -153,7 +180,11 @@ iDialog->RunLD(); } - +// ---------------------------------------------------------------------------- +// CAiDialogRenderer::FocusObtainedL() +// +// ---------------------------------------------------------------------------- +// void CAiDialogRenderer::FocusObtainedL() { if( iShowDialog ) @@ -161,3 +192,5 @@ ShowDialogL(); } } + +// End of file