PECengine/PresenceManager2/SrcReactAuth/CPEngReactAuthTransaction.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 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:  Presence reactive authorization transactions.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include "CPEngReactAuthTransaction.h"
       
    20 #include "CPEngReactAuthTransactionImp.h"
       
    21 #include "TPEngMDesCArrayAdapter.h"
       
    22 
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CPEngReactAuthTransaction::NewL()
       
    29 // Two-phased constructor.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C CPEngReactAuthTransaction* CPEngReactAuthTransaction::NewL(
       
    33     const CPEngNWSessionSlotID2& aNWSessionSlotID,
       
    34     TInt aPriority )
       
    35     {
       
    36     CPEngReactAuthTransaction* self = CPEngReactAuthTransaction::NewLC(
       
    37                                           aNWSessionSlotID,
       
    38                                           aPriority );
       
    39     CleanupStack::Pop( self );
       
    40     return self;
       
    41     }
       
    42 
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CPEngReactAuthTransaction::NewLC()
       
    46 // Two-phased constructor.
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 EXPORT_C CPEngReactAuthTransaction* CPEngReactAuthTransaction::NewLC(
       
    50     const CPEngNWSessionSlotID2& aNWSessionSlotID,
       
    51     TInt aPriority )
       
    52     {
       
    53     CPEngReactAuthTransaction* self = new ( ELeave ) CPEngReactAuthTransaction;
       
    54     CleanupStack::PushL( self );
       
    55     self->iImp = CPEngReactAuthTransactionImp::NewL( *self,
       
    56                                                      aPriority,
       
    57                                                      aNWSessionSlotID );
       
    58     return self;
       
    59     }
       
    60 
       
    61 
       
    62 
       
    63 // Destructor
       
    64 CPEngReactAuthTransaction::~CPEngReactAuthTransaction()
       
    65     {
       
    66     delete iImp;
       
    67     }
       
    68 
       
    69 
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // CPEngReactAuthTransaction::CPEngReactAuthTransaction
       
    73 // C++ default constructor can NOT contain any code, that
       
    74 // might leave.
       
    75 // -----------------------------------------------------------------------------
       
    76 //
       
    77 CPEngReactAuthTransaction::CPEngReactAuthTransaction()
       
    78     {
       
    79     }
       
    80 
       
    81 
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // CPEngReactAuthTransaction::IsPublishReactAuthRespondsActive()
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 EXPORT_C TBool CPEngReactAuthTransaction::IsPublishReactAuthRespondsActive() const
       
    88     {
       
    89     return iImp->IsPublishReactAuthRespondsActive();
       
    90     }
       
    91 
       
    92 
       
    93 // -----------------------------------------------------------------------------
       
    94 // CPEngReactAuthTransaction::PublishReactAuthResponds()
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 EXPORT_C TInt CPEngReactAuthTransaction::PublishReactAuthResponds(
       
    98     MPEngAuthorizationRespond*& aResponds,
       
    99     MPEngReactAuthTransactionObserver& aObserver )
       
   100     {
       
   101     return iImp->PublishReactAuthResponds( aResponds, aObserver );
       
   102     }
       
   103 
       
   104 
       
   105 // -----------------------------------------------------------------------------
       
   106 // CPEngReactAuthTransaction::CancelPublishReactAuthResponds()
       
   107 // -----------------------------------------------------------------------------
       
   108 //
       
   109 EXPORT_C void CPEngReactAuthTransaction::CancelPublishReactAuthResponds()
       
   110     {
       
   111     iImp->CancelPublishReactAuthResponds();
       
   112     }
       
   113 
       
   114 
       
   115 
       
   116 // End of File
       
   117 
       
   118