sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedPartner sl@0: @released sl@0: */ sl@0: sl@0: #ifndef PROMPTREQUEST_H sl@0: #define PROMPTREQUEST_H sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #include sl@0: sl@0: namespace UserPromptService sl@0: { sl@0: sl@0: /** sl@0: The data provided by the system server to the User Prompt Service in an Authorise request. sl@0: */ sl@0: NONSHARABLE_CLASS(CPromptRequest) : public CBase sl@0: { sl@0: public: sl@0: IMPORT_C static CPromptRequest* NewL( sl@0: const TSecureId& aClientSid, const TVendorId& aClientVid, const TThreadId& aClientThreadId, TProcessId &aClientProcessId, sl@0: const TSecureId& aServerSid, const TServiceId& aServiceId, RBuf& aDestination, RBuf8& aOpaqueData, sl@0: TBool aSecurityResult); sl@0: sl@0: IMPORT_C static CPromptRequest* NewLC( sl@0: const TSecureId& aClientSid, const TVendorId& aClientVid, const TThreadId& aClientThreadId, TProcessId &aClientProcessId, sl@0: const TSecureId& aServerSid, const TServiceId& aServiceId, RBuf& aDestination, RBuf8& aOpaqueData, sl@0: TBool aSecurityResult); sl@0: sl@0: IMPORT_C const TSecureId& ClientSid() const; sl@0: IMPORT_C TBool IsClientSidProtected() const; sl@0: IMPORT_C const TVendorId& ClientVid() const; sl@0: IMPORT_C const TSecureId& ServerSid() const; sl@0: IMPORT_C const TServiceId& ServiceId() const; sl@0: IMPORT_C const TDesC& Destination() const; sl@0: IMPORT_C const TDesC8& OpaqueData() const; sl@0: IMPORT_C const TThreadId& ClientThreadId() const; sl@0: IMPORT_C const TProcessId& ClientProcessId() const; sl@0: IMPORT_C TBool SecurityResult() const; sl@0: sl@0: ~CPromptRequest(); sl@0: private: sl@0: sl@0: CPromptRequest( const TSecureId& aClientSid, const TVendorId& aClientVid, const TThreadId& aClientThreadId, TProcessId &aClientProcessId, sl@0: const TSecureId& aServerSid, const TServiceId& aServiceId, sl@0: RBuf& aDestination, RBuf8& aOpaqueData, sl@0: TBool aSecurityResult); sl@0: sl@0: TSecureId iClientSid; ///< The secure id of the client process sl@0: TVendorId iClientVid; ///< The vendor id of the client process sl@0: TThreadId iClientThreadId; ///< The thread id of the client requesting the service sl@0: TProcessId iClientProcessId; ///< The process id of the client requesting the service sl@0: sl@0: TSecureId iServerSid; ///< The secure id of the system server sl@0: TServiceId iServiceId; ///< The ID of the server requested sl@0: sl@0: RBuf iDestination; ///< The destination e.g. the Internet Access Point sl@0: RBuf8 iOpaqueData; ///< Opaque data sl@0: TBool iSecurityResult; /// Whether the client pased the system server's security check. sl@0: }; sl@0: } sl@0: sl@0: #endif // PROMPTREQUEST_H sl@0: