diff options
author | Homer Horwitz | 2008-09-24 21:12:21 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-09-24 21:12:21 +0000 |
commit | fe9aea258ff4142e718b4916ccefeeedef229768 (patch) | |
tree | f60c40697833392b35788fbc5cd97a5014bb29b7 /OpenSim/Data/SQLite | |
parent | light the mysql region tests (diff) | |
download | opensim-SC-fe9aea258ff4142e718b4916ccefeeedef229768.zip opensim-SC-fe9aea258ff4142e718b4916ccefeeedef229768.tar.gz opensim-SC-fe9aea258ff4142e718b4916ccefeeedef229768.tar.bz2 opensim-SC-fe9aea258ff4142e718b4916ccefeeedef229768.tar.xz |
Add persistence of active gestures. This needs an UGAIM update to work.
Active gestures are sent as part of the login-response. Added
fetchActiveGestures to SQLite and MySQL; added an empty one for MSSQL and
NHibernate. Using the empty ones won't cause errors, but doesn't provide
persistence either, of course.
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteInventoryStore.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs index 40b61ee..b9fda04 100644 --- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs +++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs | |||
@@ -847,5 +847,24 @@ namespace OpenSim.Data.SQLite | |||
847 | row["UUID"] = Util.ToRawUuidString(folder.ID); | 847 | row["UUID"] = Util.ToRawUuidString(folder.ID); |
848 | row["parentID"] = Util.ToRawUuidString(folder.ParentID); | 848 | row["parentID"] = Util.ToRawUuidString(folder.ParentID); |
849 | } | 849 | } |
850 | |||
851 | public List<InventoryItemBase> fetchActiveGestures (UUID avatarID) | ||
852 | { | ||
853 | lock (ds) | ||
854 | { | ||
855 | List<InventoryItemBase> items = new List<InventoryItemBase>(); | ||
856 | |||
857 | DataTable inventoryItemTable = ds.Tables["inventoryitems"]; | ||
858 | string selectExp = "avatarID = '" + Util.ToRawUuidString(avatarID) + "' AND assetType = " + | ||
859 | (int)AssetType.Gesture + " AND flags = 1"; | ||
860 | m_log.DebugFormat("[SQL]: sql = " + selectExp); | ||
861 | DataRow[] rows = inventoryItemTable.Select(selectExp); | ||
862 | foreach (DataRow row in rows) | ||
863 | { | ||
864 | items.Add(buildItem(row)); | ||
865 | } | ||
866 | return items; | ||
867 | } | ||
868 | } | ||
850 | } | 869 | } |
851 | } | 870 | } |