serviceproviders/sapi_sysinfo/sysinfoservice/inc/sysrequest.inl
changeset 5 989d2f495d90
equal deleted inserted replaced
1:a36b1e19a461 5:989d2f495d90
       
     1 /*
       
     2 * Copyright (c) 2002 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 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 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  CSysInfoService class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // --------------------------------------------------------------------
       
    20 // TSysRequest::TSysRequest()
       
    21 // Constructor
       
    22 // --------------------------------------------------------------------
       
    23 //
       
    24 inline TSysRequest::TSysRequest(const TPtrC aEntity, const TPtrC aKey,
       
    25                                 TInt32 aTransactionID, 
       
    26                                 ISystemObserver* aCallback,
       
    27                                 TRequestType aReqType): 
       
    28                                 iEntity(aEntity),iKey(aKey),
       
    29                                 iRequestType(aReqType),
       
    30                                 iSysData(NULL),
       
    31                                 iTransactionID(aTransactionID),
       
    32                                 iObserver(aCallback)
       
    33 {
       
    34 	
       
    35 }
       
    36 
       
    37 // --------------------------------------------------------------------
       
    38 // TSysRequest::TSysRequest()
       
    39 // overloaded constructor.
       
    40 // --------------------------------------------------------------------
       
    41 //
       
    42 inline TSysRequest::TSysRequest(const TDesC& aEntity, const TDesC& aKey, 
       
    43                                 const CSysData* aData, TInt32 aTransactionID,
       
    44                                 ISystemObserver* aCallback,
       
    45                                 TRequestType aReqType):
       
    46                                 iEntity(aEntity),iKey(aKey),
       
    47                                 iRequestType(aReqType),
       
    48                                 iSysData(aData),
       
    49                                 iTransactionID(aTransactionID),
       
    50                                 iObserver(aCallback)
       
    51     {
       
    52     }
       
    53 
       
    54 // --------------------------------------------------------------------
       
    55 // TSysRequest::Entity()
       
    56 // returns Entity.
       
    57 // --------------------------------------------------------------------
       
    58 //
       
    59 inline const TPtrC TSysRequest::Entity() const
       
    60     {
       
    61     return iEntity;
       
    62     }
       
    63 
       
    64 // --------------------------------------------------------------------
       
    65 // TSysRequest::Key()
       
    66 // returns Key.
       
    67 // --------------------------------------------------------------------
       
    68 //
       
    69 inline const TPtrC TSysRequest::Key() const
       
    70     {
       
    71     return iKey;
       
    72     }
       
    73 
       
    74 // --------------------------------------------------------------------
       
    75 // TSysRequest::RequestType()
       
    76 // returns type of request.
       
    77 // --------------------------------------------------------------------
       
    78 //
       
    79 inline TSysRequest::TRequestType TSysRequest::RequestType () const
       
    80     {
       
    81     return iRequestType;
       
    82     }
       
    83 
       
    84 // --------------------------------------------------------------------
       
    85 // TSysRequest::TransactionID()
       
    86 // returns TransactionID.
       
    87 // --------------------------------------------------------------------
       
    88 //
       
    89 inline TInt32 TSysRequest::TransactionID() const
       
    90     {
       
    91     return iTransactionID;
       
    92     }
       
    93 
       
    94 // --------------------------------------------------------------------
       
    95 // TSysRequest::SystemData()
       
    96 // returns stored CSysData.
       
    97 // --------------------------------------------------------------------
       
    98 //
       
    99 inline const CSysData* TSysRequest::SystemData() const
       
   100     {
       
   101     return iSysData;
       
   102     }
       
   103 
       
   104 inline ISystemObserver* TSysRequest ::Observer() const
       
   105     {
       
   106     return iObserver;
       
   107     }
       
   108