* Minor: get CreateNewUserInventory() to return true on success

0.6.0-stable
Justin Clarke Casey 2008-04-10 15:28:52 +00:00
parent f2d36186f0
commit ba132f3a0b
3 changed files with 10 additions and 4 deletions

View File

@ -66,10 +66,11 @@ namespace OpenSim.Framework.Communications
void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); void DeleteInventoryItem(LLUUID userID, InventoryItemBase item);
/// <summary> /// <summary>
/// Create a new inventory for the given user /// Create a new inventory for the given user.
/// </summary> /// </summary>
/// <param name="user"></param> /// <param name="user"></param>
void CreateNewUserInventory(LLUUID user); /// <returns>true if the inventory was successfully created, false otherwise</returns>
bool CreateNewUserInventory(LLUUID user);
bool HasInventoryForUser(LLUUID userID); bool HasInventoryForUser(LLUUID userID);

View File

@ -135,7 +135,7 @@ namespace OpenSim.Framework.Communications
} }
// See IInventoryServices // See IInventoryServices
public void CreateNewUserInventory(LLUUID user) public bool CreateNewUserInventory(LLUUID user)
{ {
InventoryFolderBase existingRootFolder = RequestRootFolder(user); InventoryFolderBase existingRootFolder = RequestRootFolder(user);
@ -151,7 +151,11 @@ namespace OpenSim.Framework.Communications
UsersInventory inven = new UsersInventory(); UsersInventory inven = new UsersInventory();
inven.CreateNewInventorySet(user); inven.CreateNewInventorySet(user);
AddNewInventorySet(inven); AddNewInventorySet(inven);
return true;
} }
return false;
} }
public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack, public abstract void RequestInventoryForUser(LLUUID userID, InventoryFolderInfo folderCallBack,

View File

@ -208,8 +208,9 @@ namespace OpenSim.Region.Communications.OGS1
return null; return null;
} }
public void CreateNewUserInventory(LLUUID user) public bool CreateNewUserInventory(LLUUID user)
{ {
return false;
} }
// See IInventoryServices // See IInventoryServices