diff -r 000000000000 -r ff3acec5bc43 mpxplugins/viewplugins/views/waitnotedialog/src/mpxusbdialog.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mpxplugins/viewplugins/views/waitnotedialog/src/mpxusbdialog.cpp Thu Dec 17 08:45:05 2009 +0200 @@ -0,0 +1,97 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Wait note dialog for USB transfer +* +*/ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "mpxusbdialog.h" + +// --------------------------------------------------------------------------- +// Constructor +// --------------------------------------------------------------------------- +// +CMPXUsbWaitDialog::CMPXUsbWaitDialog( MMPXWaitNoteObserver* aObs ) + : CMPXWaitNoteDialog( aObs, EMPXUsbEventNote ) + { + + } + + +// --------------------------------------------------------------------------- +// 2nd Phased constructor +// --------------------------------------------------------------------------- +// +void CMPXUsbWaitDialog::ConstructL() + { + BaseConstructL(); + } + + +// --------------------------------------------------------------------------- +// Two-Phased Constructor +// --------------------------------------------------------------------------- +// +CMPXUsbWaitDialog* CMPXUsbWaitDialog::NewL( MMPXWaitNoteObserver* aObs ) + { + CMPXUsbWaitDialog* self = new(ELeave) CMPXUsbWaitDialog( aObs ); + CleanupStack::PushL( self ); + self->ConstructL(); + CleanupStack::Pop( self ); + return self; + } + + +// --------------------------------------------------------------------------- +// Destructor +// --------------------------------------------------------------------------- +// +CMPXUsbWaitDialog::~CMPXUsbWaitDialog() + { + } + + +// --------------------------------------------------------------------------- +// Setup Wait Notes +// --------------------------------------------------------------------------- +// +void CMPXUsbWaitDialog::PreNoteDisplayHandleL() + { + // CBA + SetCBAL( R_AVKON_SOFTKEYS_EMPTY ); + + // Text + HBufC* text = StringLoader::LoadLC( R_MPX_USB_CONNECTION_IN_PROGRESS ); + SetTextL( *text ); + CleanupStack::PopAndDestroy( text ); + + // Icon + TNoteIconInfo icon( (TInt)EMbmAvkonQgn_note_progress, + (TInt)EMbmAvkonQgn_note_progress_mask, + TFileName(KAvkonBitmapFile) ); + SetIconL( icon ); + } + + +// End of File