From 544daf1c76ff553036ebd81a8e0e2af0dff9bfe0 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 11 Oct 2008 05:59:12 +0000 Subject: Plumb the remaining search packets and replies. --- OpenSim/Framework/IClientAPI.cs | 66 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs index dd905c9..556f724 100644 --- a/OpenSim/Framework/IClientAPI.cs +++ b/OpenSim/Framework/IClientAPI.cs @@ -314,6 +314,10 @@ namespace OpenSim.Framework public delegate void ObjectOwner(IClientAPI remoteClient, UUID ownerID, UUID groupID, List localIDs); public delegate void DirPlacesQuery(IClientAPI remoteClient, UUID queryID, string queryText, int queryFlags, int category, string simName, int queryStart); + public delegate void DirFindQuery(IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, int queryStart); + public delegate void DirLandQuery(IClientAPI remoteClient, UUID queryID, uint queryFlags, uint searchType, int price, int area, int queryStart); + public delegate void DirPopularQuery(IClientAPI remoteClient, UUID queryID, uint queryFlags); + public delegate void DirClassifiedQuery(IClientAPI remoteClient, UUID queryID, string queryText, uint queryFlags, uint category, int queryStart); public delegate void MapItemRequest(IClientAPI remoteClient, uint flags, uint EstateID, bool godlike, uint itemtype, ulong regionhandle); @@ -328,6 +332,61 @@ namespace OpenSim.Framework public float dwell; } + public struct DirPeopleReplyData + { + public UUID agentID; + public string firstName; + public string lastName; + public string group; + public bool online; + public int reputation; + } + + public struct DirEventsReplyData + { + public UUID ownerID; + public string name; + public uint eventID; + public string date; + public uint unixTime; + public uint eventFlags; + } + + public struct DirGroupsReplyData + { + public UUID groupID; + public string groupName; + public int members; + public float searchOrder; + } + + public struct DirClassifiedReplyData + { + public UUID classifiedID; + public string name; + public byte classifiedFlags; + public uint creationDate; + public uint expirationDate; + public int price; + } + + public struct DirLandReplyData + { + public UUID parcelID; + public string name; + public bool auction; + public bool forSale; + public int salePrice; + public int actualArea; + } + + public struct DirPopularReplyData + { + public UUID parcelID; + public string name; + public float dwell; + } + public interface IClientAPI { Vector3 StartPos { get; set; } @@ -793,6 +852,13 @@ namespace OpenSim.Framework void SendScriptTeleportRequest(string objName, string simName, Vector3 pos, Vector3 lookAt); void SendDirPlacesReply(UUID queryID, DirPlacesReplyData[] data); + void SendDirPeopleReply(UUID queryID, DirPeopleReplyData[] data); + void SendDirEventsReply(UUID queryID, DirEventsReplyData[] data); + void SendDirGroupsReply(UUID queryID, DirGroupsReplyData[] data); + void SendDirClassifiedReply(UUID queryID, DirClassifiedReplyData[] data); + void SendDirLandReply(UUID queryID, DirLandReplyData[] data); + void SendDirPopularReply(UUID queryID, DirPopularReplyData[] data); + void SendMapItemReply(mapItemReply[] replies, uint mapitemtype, uint flags); -- cgit v1.1