Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.SessionSettingsProvider


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
/**
 * Provides the UI with read/write access to settings which affect gameplay, such as gameinfo, mutator, and maplist settings.
 *
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 *
 * @todo - make this class also expose a copy of all settings as an array called "Settings" so that the UI can autogenerate lists
 * of menu options, ala GUIMultiOptionList in UT2004.
 *
 * @fixme - not ready for use yet!
 */
class SessionSettingsProvider extends UISettingsProvider
	within UIDataStore_SessionSettings
	native(inherit)
	abstract;

// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)
// (cpptext)

/**
 * this is the UISettingsClient class that is used as the interface for retrieving metadata from data sources;  only used
 * by C++ to easily determine whether arbitrary classes implement the correct interface for use by this data provider
 */
var	const				private		class<UISettingsClient>		ProviderClientClass;

/**
 * The metaclass for this data provider.  Classes indicate which properties are available for use by settings data stores
 * by marking the property with a keyword.  Must implement the UISettingsClient interface.
 */
var	const							class						ProviderClientMetaClass;

/**
 * the class that will provide the properties and metadata for the settings exposed in this provider.  Set by calling
 * BindProviderInstance.
 */
var	const	transient				class						ProviderClient;

/* == Natives == */
/**
 * Associates this data provider with the specified class.
 *
 * @param	DataSourceClass	a pointer to the specific child of Dataclass that this data provider should present data for.
 *
 * @return	TRUE if the class specified was successfully associated with this data provider.  FALSE if the object specified
 *			wasn't of the correct type or was otherwise invalid.
 */
native final function bool BindProviderClient( class DataSourceClass );

/**
 * Clears the reference to the class associated with this data provider.
 *
 * @return	TRUE if the class reference was successfully cleared.
 */
native final function bool UnbindProviderClient();

/* == Events == */

/**
 * Called once BindProviderInstance has successfully verified that DataSourceInstance is of the correct type.  Child classes
 * can override this function to handle storing the reference, for example.
 */
event ProviderClientBound( class DataSourceClass );

/**
 * Called immediately after this data provider's DataSource is disassociated from this data provider.
 */
event ProviderClientUnbound( class DataSourceClass );

/**
 * Script hook for preventing a particular child of DataClass from being represented by this dynamic data provider.
 *
 * @param	PotentialDataSourceClass	a child class of DataClass that is being considered as a candidate for binding by this provider.
 *
 * @return	return FALSE to prevent PotentialDataSourceClass's properties from being added to the UI editor's list of bindable
 *			properties for this data provider; also prevents any instances of PotentialDataSourceClass from binding to this provider
 *			at runtime.
 */
event bool IsValidDataSourceClass( class PotentialDataSourceClass )
{
	return true;
}

/**
 * Allows the data provider to clear any references that would interfere with garbage collection.
 */
function bool CleanupDataProvider()
{
	if ( ProviderClient != None )
	{
		return UnbindProviderClient();
	}

	return false;
}

defaultproperties
{
   ProviderClientClass=Class'Engine.UISettingsClient'
   ProviderTag="SessionSettingsProvider"
   Name="Default__SessionSettingsProvider"
   ObjectArchetype=UISettingsProvider'Engine.Default__UISettingsProvider'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:10.000 - Creation time: sk 18-3-2018 10:01:14.155 - Created with UnCodeX