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