DirectPrint/DirectPrintApp/src/directprintmsgutil.cpp
branchRCL_3
changeset 12 613a5ff70823
child 15 2275db202402
equal deleted inserted replaced
8:3f1fec088555 12:613a5ff70823
       
     1 /*
       
     2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * This class is the message utility class of DirectPrint
       
    16 *
       
    17 */
       
    18 
       
    19 #include <bautils.h>
       
    20 #include <eikenv.h>
       
    21 #include <s32file.h>
       
    22 #include <aknnotewrappers.h>
       
    23 #include <DirectPrintApp.rsg>
       
    24 
       
    25 #include "clog.h"
       
    26 #include "DirectPrintMsgUtil.h"
       
    27 
       
    28 CDirectPrintMsgUtil::CDirectPrintMsgUtil()
       
    29 	{
       
    30 	}
       
    31 
       
    32 CDirectPrintMsgUtil::~CDirectPrintMsgUtil()
       
    33 	{
       
    34 	}
       
    35 
       
    36 CDirectPrintMsgUtil* CDirectPrintMsgUtil::NewL()
       
    37 	{
       
    38 	CDirectPrintMsgUtil* self = CDirectPrintMsgUtil::NewLC();
       
    39 	CleanupStack::Pop(self);
       
    40 	return self;
       
    41 	}
       
    42 
       
    43 CDirectPrintMsgUtil* CDirectPrintMsgUtil::NewLC()
       
    44 	{
       
    45 	CDirectPrintMsgUtil* self = new(ELeave) CDirectPrintMsgUtil();
       
    46 	CleanupStack::PushL(self);
       
    47 	self->ConstructL();
       
    48 	return self;
       
    49 	}
       
    50 
       
    51 void CDirectPrintMsgUtil::ConstructL()
       
    52 	{
       
    53 	LOG("CDirectPrintMsgUtil::ConstructL BEGIN");
       
    54 
       
    55 	LOG("CDirectPrintMsgUtil::ConstructL END");
       
    56 	}
       
    57 
       
    58 // -----------------------------------------------------------------------------
       
    59 // Displays error note
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 void CDirectPrintMsgUtil::DisplayErrorNoteL( TInt aResourceId )
       
    63     {
       
    64     HBufC* noteBuf = CCoeEnv::Static()->AllocReadResourceLC( aResourceId );
       
    65     CAknErrorNote* errorNote = new( ELeave ) CAknErrorNote();
       
    66     errorNote->ExecuteLD( *noteBuf );
       
    67     CleanupStack::PopAndDestroy( noteBuf );
       
    68     }
       
    69 
       
    70 // End of file