messagingfw/deprecate/senduiservices/inc/SendUiCapabilityCheck.h
branchRCL_3
changeset 23 d51193d814ea
parent 22 d2c4c66342f3
child 24 002ade1da91c
equal deleted inserted replaced
22:d2c4c66342f3 23:d51193d814ea
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   Capability checker for SendUI.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CSENDUICAPABILITYCHECK_H
       
    22 #define CSENDUICAPABILITYCHECK_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CBaseMtm;
       
    29 class CMsvSession;
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Capability checker for SendUI.
       
    34 *
       
    35 *  @lib SenduiDataUtils.lib
       
    36 *  @since S60 3.2
       
    37 */
       
    38 NONSHARABLE_CLASS(CSendUiCapabilityCheck) : public CActive
       
    39     {
       
    40     public:  // Constructors and destructor
       
    41         
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         static CSendUiCapabilityCheck* NewLC();
       
    46 
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CSendUiCapabilityCheck();
       
    51 
       
    52         TBool CheckCapabilitiesL(
       
    53             const TSecurityInfo& aSecurityInfo,
       
    54             CMsvSession& aSession,
       
    55             const TUid aMtmType,
       
    56             const TDesC& aServiceName );
       
    57 
       
    58     private:
       
    59 
       
    60         void RunL();
       
    61   
       
    62         void DoCancel();
       
    63 
       
    64         void ConstructL();
       
    65         
       
    66         /**
       
    67         * C++ default constructor.
       
    68         */
       
    69         CSendUiCapabilityCheck();
       
    70     
       
    71     private:
       
    72 
       
    73 	    CActiveSchedulerWait iWait;
       
    74 
       
    75         RNotifier iNotifier;
       
    76         TUid iNotifierUid;
       
    77         
       
    78         TPckgBuf<TInt> iNotifierResult;
       
    79 
       
    80     };
       
    81 
       
    82 #endif      // CSENDUICAPABILITYCHECK_H   
       
    83             
       
    84 // End of File