javaextensions/satsa/pki/src.s60/cstsseprompt.cpp
changeset 21 2a9601315dfc
child 57 59b3b4473dc8
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "cstsseprompt.h"
       
    22 #include <AknGlobalNote.h>
       
    23 #include <avkon.rsg>
       
    24 #include <caosynchronizer.h>
       
    25 
       
    26 
       
    27 
       
    28 // ============================ MEMBER FUNCTIONS ===============================
       
    29 
       
    30 // -----------------------------------------------------------------------------
       
    31 // CSTSSEPrompt::NewLC
       
    32 // Two-phased constructor.
       
    33 // -----------------------------------------------------------------------------
       
    34 //
       
    35 CSTSSEPrompt* CSTSSEPrompt::NewLC()
       
    36 {
       
    37     CSTSSEPrompt* self = new(ELeave) CSTSSEPrompt;
       
    38     CleanupStack::PushL(self);
       
    39     self->ConstructL();
       
    40     return self;
       
    41 }
       
    42 
       
    43 // Destructor
       
    44 CSTSSEPrompt::~CSTSSEPrompt()
       
    45 {
       
    46     delete iGlobalNote;
       
    47     delete iSynchronizer;
       
    48 }
       
    49 
       
    50 // -----------------------------------------------------------------------------
       
    51 // CSTSSEPrompt::DisplayPromptL
       
    52 // Displays the prompt
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 void CSTSSEPrompt::DisplayPromptL(const TDesC& aPrompt)
       
    56 {
       
    57     iGlobalNote->ShowNoteL(
       
    58         iSynchronizer->iStatus,
       
    59         EAknGlobalConfirmationNote,
       
    60         aPrompt);
       
    61     iSynchronizer->ExecuteL((TTimeIntervalMicroSeconds32) 0);
       
    62 }
       
    63 
       
    64 // -----------------------------------------------------------------------------
       
    65 // CSTSSEPrompt::CSTSSEPrompt
       
    66 // c++ constructor, may not leave
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 CSTSSEPrompt::CSTSSEPrompt()
       
    70 {
       
    71 
       
    72 }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CSTSSEPrompt::ConstructL
       
    76 // Second phase constructor, may leave
       
    77 // -----------------------------------------------------------------------------
       
    78 void CSTSSEPrompt::ConstructL()
       
    79 {
       
    80     iGlobalNote = CAknGlobalNote::NewL();
       
    81     iGlobalNote->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY);
       
    82     iSynchronizer = CAOSynchronizer::NewL();
       
    83 }
       
    84 
       
    85