diff -r e8c1ea2c6496 -r 8758140453c0 lbs/internal/lbstestserver/inc/tserverstartparams.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lbs/internal/lbstestserver/inc/tserverstartparams.h Thu Jan 21 12:53:44 2010 +0000 @@ -0,0 +1,69 @@ +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Symbian Foundation License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Definition of class used to define server start parameters +// +// + + + +/** + @file + @internalTechnology +*/ + +#ifndef __SERVERSTARTPARAMS_H__ +#define __SERVERSTARTPARAMS_H__ + +#include +#include +#include "tstartparamsbase.h" + +const TInt KServerFrameworkDefaultMessageSlots = 4; + + +/** +@internalTechnology +@released + +Parameters for starting server + */ +NONSHARABLE_CLASS(TServerStartParams) : public TStartParamsBase + { +public: + TServerStartParams(); + void SetServerFileName(const TDesC& aExeName); + void SetServerName(const TDesC& aServerName); + void SetNumberOfServerSlots(TInt aSlots); + void SetServerUids(TUid aUid1, TUid aUid2, TUid aUid3); + const TDesC& GetServerFileName(); + const TDesC& GetServerName(); + TInt GetNumberOfServerSlots(); + TPtrC GetAsCommandLine() const; + TUidType& GetServerUids(); +private: + // from TStartParamsBase + void SetType(); +private: + // property and really do mean private here + /** Server file name */ + TFileName iServerFileName; + /** Server name */ + TFileName iServerName; + /** Number of slots in server */ + TInt iNumberOfSlots; + /** a set of three unique identifiers (UIDs) identify the server */ + TUidType iUids; + }; + +#endif // __SERVERSTARTPARAMS_H__