lbs/internal/lbstestserver/inc/tserverstartparams.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Definition of class used to define server start parameters 
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalTechnology
       
    23 */
       
    24 
       
    25 #ifndef __SERVERSTARTPARAMS_H__
       
    26 #define __SERVERSTARTPARAMS_H__
       
    27 
       
    28 #include <e32std.h>
       
    29 #include <e32base.h>
       
    30 #include "tstartparamsbase.h"
       
    31 
       
    32 const TInt KServerFrameworkDefaultMessageSlots = 4;
       
    33 
       
    34 
       
    35 /** 
       
    36 @internalTechnology
       
    37 @released
       
    38 
       
    39 Parameters for starting server 
       
    40  */
       
    41 NONSHARABLE_CLASS(TServerStartParams) : public TStartParamsBase
       
    42 	{
       
    43 public:
       
    44 	TServerStartParams();
       
    45 	void SetServerFileName(const TDesC& aExeName);
       
    46 	void SetServerName(const TDesC& aServerName);
       
    47 	void SetNumberOfServerSlots(TInt aSlots);
       
    48 	void SetServerUids(TUid aUid1, TUid aUid2, TUid aUid3);
       
    49 	const TDesC& GetServerFileName();
       
    50 	const TDesC& GetServerName();
       
    51 	TInt GetNumberOfServerSlots();
       
    52 	TPtrC GetAsCommandLine() const;
       
    53 	TUidType& GetServerUids();
       
    54 private:
       
    55 	// from TStartParamsBase
       
    56 	void SetType();
       
    57 private:
       
    58 	// property and really do mean private here
       
    59 	/** Server file name */
       
    60 	TFileName					iServerFileName;
       
    61 	/** Server name */
       
    62 	TFileName					iServerName;
       
    63 	/** Number of slots in server */
       
    64 	TInt							iNumberOfSlots;
       
    65 	/** a set of three unique identifiers (UIDs) identify the server */
       
    66 	TUidType 					iUids;
       
    67 	};
       
    68 	
       
    69 #endif // __SERVERSTARTPARAMS_H__