installationservices/swi/test/tsisfile/tocspclientserver.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2004-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 * Common header for the server and the client.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef __OCSPCLIENTSERVER_H__
       
    21 #define __OCSPCLIENTSERVER_H__
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 namespace Swi
       
    26 {
       
    27   namespace Test
       
    28   {
       
    29     
       
    30     _LIT(KOcspServerName, "!tsisocsp");
       
    31     _LIT(KOcspServerImage, "tsisocsp"); 
       
    32     _LIT(KOcspServer, "Test OCSP Server");
       
    33  
       
    34     const TUid KOcspServerUid3 = { 0x101F7244 };
       
    35 
       
    36 /**
       
    37  * @test
       
    38  * @internalTechnology
       
    39  */
       
    40 enum TOcspServerMessage
       
    41 	{ 
       
    42 	  ECheck
       
    43 	};
       
    44 
       
    45 /**
       
    46  * @test
       
    47  * @internalTechnology
       
    48  */
       
    49 enum TOcspServerPanic
       
    50 	{
       
    51 	EPanicOcspServerBadDescriptor = 10,
       
    52 	EPanicOcspServerIllegalFunction
       
    53 	};
       
    54 
       
    55 /**
       
    56  * @test
       
    57  * @internalTechnology
       
    58  */
       
    59 class ROcspServerSession : public RSessionBase
       
    60 	{
       
    61 public:
       
    62 	/**
       
    63 	 * Connect to the server, attempt to start it if it is not yet running
       
    64 	 * @return KErrNone if successful, or an error code
       
    65 	 */
       
    66 	IMPORT_C TInt Connect();
       
    67 	IMPORT_C TInt Check();
       
    68 	};
       
    69 
       
    70   } // namespace Test
       
    71 
       
    72 } // namespace Swi
       
    73 
       
    74 #endif // #ifndef __CONSOLECLIENTSERVER_H__