crypto/weakcryptospi/inc/randcliserv.h
branchRCL_3
changeset 41 9b5a3a9fddf8
parent 37 721a5e5fe251
child 42 eb9b28acd381
equal deleted inserted replaced
37:721a5e5fe251 41:9b5a3a9fddf8
     1 /*
       
     2 * Copyright (c) 2003-2009 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file 
       
    21  @publishedPartner
       
    22  @released
       
    23 */
       
    24 
       
    25 #ifndef __RANDCLISERV_H__
       
    26 #define __RANDCLISERV_H__
       
    27 
       
    28 _LIT(KRandomServerLib,"randsvr");
       
    29 _LIT(KRandomServerName,"!RandomServer");
       
    30 
       
    31 class TServerStart
       
    32 /**
       
    33  * @publishedPartner
       
    34  * @released
       
    35  */
       
    36 	{
       
    37 public:
       
    38 	TServerStart(TRequestStatus& aStatus);
       
    39 	TPtrC AsCommand() const;
       
    40 	/**
       
    41 	 * @internalAll
       
    42 	 */
       
    43 	TServerStart();
       
    44 	/**
       
    45 	 * @internalAll
       
    46 	 */
       
    47 	TInt GetCommand();
       
    48 	/**
       
    49 	 * @internalAll
       
    50 	 */
       
    51 	void SignalL();
       
    52 private:
       
    53 	TThreadId iId;
       
    54 	TRequestStatus* iStatus;
       
    55 	};
       
    56 
       
    57 inline TServerStart::TServerStart(TRequestStatus& aStatus)
       
    58 	:iId(RThread().Id()),iStatus(&aStatus)
       
    59 	{aStatus=KRequestPending;}
       
    60 inline TPtrC TServerStart::AsCommand() const
       
    61 	{return TPtrC(reinterpret_cast<const TText*>(this),sizeof(TServerStart)/sizeof(TText));}
       
    62 
       
    63 #endif // __RANDCLISERV_H__