/*************************************************************************
 *
 *  $RCSfile: StartupData.idl,v $
 *
 *  $Revision: 1.1 $
 *
 *  last change: $Author: mh $ $Date: 2003/02/12 13:59:07 $
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2002
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2002 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 *
 *  Copyright: 2002 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************/
#ifndef __com_sun_star_portal_client_StartupData_idl__
#define __com_sun_star_portal_client_StartupData_idl__

#ifndef __com_sun_star_lang_XMultiServiceFactory_idl__ 
#include <com/sun/star/lang/XMultiServiceFactory.idl>
#endif

#ifndef __com_sun_star_portal_client_XMultiInstanceFactory_idl__
#include <com/sun/star/portal/client/XMultiInstanceFactory.idl>
#endif

#ifndef __com_sun_star_portal_client_XRmSync_idl__
#include <com/sun/star/portal/client/XRmSync.idl>
#endif

#ifndef __com_sun_star_portal_client_XRmPrinterEnvironment_idl__
#include <com/sun/star/portal/client/XRmPrinterEnvironment.idl>
#endif

#ifndef __com_sun_star_portal_client_XRmStatus_idl__
#include <com/sun/star/portal/client/XRmStatus.idl>
#endif

#ifndef __com_sun_star_portal_client_StringSequence_idl__
#include <com/sun/star/portal/client/StringSequence.idl>
#endif

#ifndef __com_sun_star_util_XAtomServer_idl__
#include <com/sun/star/util/XAtomServer.idl>
#endif

#ifndef __com_sun_star_portal_client_RmQueueInfo_idl__
#include <com/sun/star/portal/client/RmQueueInfo.idl>
#endif

#ifndef __com_sun_star_portal_client_XRmPrinterEnvironment_idl__
#include <com/sun/star/portal/client/XRmPrinterEnvironment.idl>
#endif

module com
{
module sun
{
module star
{
module portal
{
module client
{

/** struct to store startup data
*/
struct StartupData
{
	//-----------------------------------------------------------------
	/** A username (used for login)
	*/
	string						aUserName;

	//-----------------------------------------------------------------
	/** A password (used for login)
	*/
	string						aPassword;

	//-----------------------------------------------------------------
	/** A string describing the client system
		<BR>"winmsci" = Windows 9x
		<BR>"wntmsci" = Windows NT x86
		<BR>"unxlnxi" = Linux x86
		<BR>"unxsols" = Solaris Sparc
	*/
	string						aClientSystemName;

	//-----------------------------------------------------------------
	/** The requested server type
		
		@see com::sun::star::portal::client::StarOfficeServerType
	*/
	long						aStarOfficeServerType;
	
	//-----------------------------------------------------------------
	/** The client factory as a reference to a XMultiServiceFactory interface
		
		<p><strong>Note:</strong> The client factory implementens two interfaces XMultiServiceFactory and
		XMultiInstanceFactory. To minimize the use of <code>queryInterface</code> calls the reference of
		both interfaces are transfered.</p>
	*/
	com::sun::star::lang::XMultiServiceFactory 	xClientFactory;

	//-----------------------------------------------------------------
	/** The client factory as a reference to a XMultiInstanceFactory interface

		<p><strong>Note:</strong> The client factory implementens two interfaces XMultiServiceFactory and
		XMultiInstanceFactory. To minimize the use of <code>queryInterface</code> calls the reference of
		both interfaces are transfered.</p>
	*/
	XMultiInstanceFactory				xMultiClientFactory;

	//-----------------------------------------------------------------
	/** a reference to a XRmSync instance used to  sync normal rvp calls

		@see com::sun::star::portal::client::XRmSync
	*/
	XRmSync						xRVPSyncNormal;

	//-----------------------------------------------------------------
	/** a reference to a XRmSync instance used to sync rvp sound calls
	*/
	XRmSync						xRVPSyncSound;

	//-----------------------------------------------------------------
	/** a reference to the client atom server 
	*/
	::com::sun::star::util::XAtomServer		xClientAtoms;

	//-----------------------------------------------------------------
	/** a reference to the client status instance
	*/
	XRmStatus					xClientStatus;
	
	//-----------------------------------------------------------------
	/** A sequence with references to XRmBitmaps and XRmJavaBitmaps. For every 
		bitmap instance one have to store two references, first a ref. to a XRmBitmap and
		after that a ref. to a XRmJavaBitmap.
	*/
	sequence< any >					aBitmapInterfaceSeq;

	//-----------------------------------------------------------------
	/** A sequence with references to XRmFrameWindow and XRmOutputDevice. For every 
		window instance one have to store two references, first a ref. to a XRmFrameWindow and
		after that a ref. to a XRmOutputDevice.
	*/
	sequence< any >					aWindowInterfaceSeq;

	//-----------------------------------------------------------------
	/** A sequence with references to XRmVirtualDevice and XRmOutputDevice. For every 
		virtual device instance one have to store two references, first a ref. to a XRmVirtualDevice and
		after that a ref. to a XRmOutputDevice.
	*/
	sequence< any >					aVirtualDeviceInterfaceSeq;
	
	//-----------------------------------------------------------------
	/** A reference to the client printer environment
	*/
	XRmPrinterEnvironment				xClientPrinterEnvironment;

    //-----------------------------------------------------------------
    /** The printer environment at startup.
        guaranteed to be the output ox xClientPrinterEnvironment->GetPrinterEnvironment()
     */
    PrinterEnvironment				aPrinterEnvironment;
	
	//-----------------------------------------------------------------
	/** The version of the client rvp implementation
	*/
	unsigned long					nRemoteVersion;
};

}; // module client
}; // module portal
}; // module star
}; // module sun
}; // module com

#endif
