PECengine/PresenceManager2/SrcReactAuth/CPEngAuthorizationRespond.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Reactive authorization responds implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include    "CPEngAuthorizationRespond.h"
       
    20 #include    "MPEngAuthorizationManager.h"
       
    21 #include    <e32std.h>
       
    22 
       
    23 
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 
       
    28 // -----------------------------------------------------------------------------
       
    29 // CPEngAuthorizationRespond::NewLC
       
    30 // Two-phased constructor.
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CPEngAuthorizationRespond* CPEngAuthorizationRespond::NewLC()
       
    34     {
       
    35     CPEngAuthorizationRespond* self = new( ELeave )
       
    36     CPEngAuthorizationRespond;
       
    37 
       
    38     CleanupStack::PushL( self );
       
    39     return self;
       
    40     }
       
    41 
       
    42 
       
    43 // Destructor
       
    44 CPEngAuthorizationRespond::~CPEngAuthorizationRespond()
       
    45     {
       
    46     if ( iAuthManager )
       
    47         {
       
    48         iAuthManager->RemoveAllAuthorizationResponses();
       
    49         iAuthManager->Close();
       
    50         }
       
    51     }
       
    52 
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CPEngAuthorizationRespond::CPEngAuthorizationRespond
       
    56 // C++ default constructor can NOT contain any code, that
       
    57 // might leave.
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 CPEngAuthorizationRespond::CPEngAuthorizationRespond()
       
    61     {
       
    62     }
       
    63 
       
    64 
       
    65 // -----------------------------------------------------------------------------
       
    66 // CPEngAuthorizationRespond::Extension()
       
    67 // -----------------------------------------------------------------------------
       
    68 //
       
    69 MPEngAuthorizationRespondExt* CPEngAuthorizationRespond::Extension()
       
    70     {
       
    71     return NULL;
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CPEngAuthorizationRespond::Extension()
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 const MPEngAuthorizationRespondExt* CPEngAuthorizationRespond::Extension() const
       
    79     {
       
    80     return NULL;
       
    81     }
       
    82 
       
    83 
       
    84 // -----------------------------------------------------------------------------
       
    85 // CPEngAuthorizationRespond::Advanced()
       
    86 // -----------------------------------------------------------------------------
       
    87 //
       
    88 const MPEngAuthorizationRespondAdvanced* CPEngAuthorizationRespond::Advanced() const
       
    89     {
       
    90     return NULL;
       
    91     }
       
    92 
       
    93 // -----------------------------------------------------------------------------
       
    94 // CPEngAuthorizationRespond::Advanced()
       
    95 // -----------------------------------------------------------------------------
       
    96 //
       
    97 MPEngAuthorizationRespondAdvanced* CPEngAuthorizationRespond::Advanced()
       
    98     {
       
    99     return NULL;
       
   100     }
       
   101 
       
   102 
       
   103 // -----------------------------------------------------------------------------
       
   104 // CPEngAuthorizationRespond::Close()
       
   105 // -----------------------------------------------------------------------------
       
   106 //
       
   107 void CPEngAuthorizationRespond::Close()
       
   108     {
       
   109     delete this;
       
   110     }
       
   111 
       
   112 
       
   113 // -----------------------------------------------------------------------------
       
   114 // CPEngAuthorizationRespond::LockRespondToAuthManagerL()
       
   115 // -----------------------------------------------------------------------------
       
   116 //
       
   117 void CPEngAuthorizationRespond::LockRespondToAuthManagerL(
       
   118     MPEngAuthorizationManager& aAuthMan )
       
   119     {
       
   120     iAuthManager = &aAuthMan;
       
   121     }
       
   122 
       
   123 
       
   124 
       
   125 //  End of File