17 #include <pia/session/session_SessionSearchCriteria.h> 18 #include <pia/inet/inet_LanSessionTypes.h> 40 class LanMatchmakeSessionInfo;
54 LanSessionSearchCriteria();
59 virtual ~LanSessionSearchCriteria();
65 void SetMinParticipants(u16 min)
67 m_MinParticipantsRangeMax = min;
68 m_MinParticipantsRangeMin = min;
76 void SetMinParticipantsRange(u16 min, u16 max)
78 m_MinParticipantsRangeMax = max;
79 m_MinParticipantsRangeMin = min;
86 void SetMaxParticipants(u16 max)
88 m_MaxParticipantsRangeMax = max;
89 m_MaxParticipantsRangeMin = max;
97 void SetMaxParticipantsRange(u16 min, u16 max)
99 m_MaxParticipantsRangeMax = max;
100 m_MaxParticipantsRangeMin = min;
107 void SetOpenedOnly(
bool bOpenedOnly)
109 m_bOpenedOnly = bOpenedOnly;
116 void SetVacantOnly(
bool bVacantOnly)
118 m_bVacantOnly = bVacantOnly;
125 void SetGameMode(u32 gameMode)
127 m_GameMode = gameMode;
133 void SetSessionType(LanSessionType sessionType)
135 m_SessionType = sessionType;
142 void SetAttribute(u32 index, u32 value);
149 void SetAttribute(u32 index, u32* value,
size_t attributeNum);
156 void SetAttributeRange(u32 index, u32 min, u32 max);
162 void SetRandomSessionSelectionMethod(u32 selectionMethod);
176 nn::Result Serialize(bit8* pBuffer,
size_t* pDataSize,
size_t bufferSize)
const;
183 nn::Result Deserialize(
const bit8* pData,
size_t dataSize);
190 size_t GetSerializedSize()
const;
198 virtual void Trace(u64 flag)
const;
213 LanSessionSearchCriteria& operator=(
const LanSessionSearchCriteria& r);
217 LanSessionSearchCriteria(
const LanSessionSearchCriteria&);
220 static const u16 INVALID_PARICIPANTS_NUM = 0xffff;
223 u16 m_MinParticipantsRangeMax;
224 u16 m_MinParticipantsRangeMin;
227 u16 m_MaxParticipantsRangeMax;
228 u16 m_MaxParticipantsRangeMin;
239 LanSessionType m_SessionType;
242 u32 m_AttributeList[LAN_ATTRIBUTE_MAX_SIZE][LAN_ATTRIBUTE_ARRAY_MAX_SIZE];
243 size_t m_AttributeSizeList[LAN_ATTRIBUTE_MAX_SIZE];
244 u32 m_AttributeRangeMin[LAN_ATTRIBUTE_MAX_SIZE];
245 u32 m_AttributeRangeMax[LAN_ATTRIBUTE_MAX_SIZE];
246 bool m_bAttributeRangeUsed[LAN_ATTRIBUTE_MAX_SIZE];
The base class for the search criteria used when searching for sessions.
Definition: session_SessionSearchCriteria.h:34
An interface to the session's information.
Definition: session_ISessionInfo.h:32