From 86d2e53d1f616eea8603533e9cba236fbae275ef Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 1 May 2008 20:16:26 +0000 Subject: [PATCH] added stubs for appearance bits to all the db layers --- OpenSim/Data/MSSQL/MSSQLUserData.cs | 27 +++++++++++++++++++ OpenSim/Data/MySQL/MySQLUserData.cs | 27 +++++++++++++++++++ OpenSim/Data/NHibernate/NHibernateUserData.cs | 27 +++++++++++++++++++ OpenSim/Data/SQLite/SQLiteUserData.cs | 27 +++++++++++++++++++ OpenSim/Data/UserDataBase.cs | 7 ++++- OpenSim/Framework/IUserData.cs | 12 +++++++++ 6 files changed, 126 insertions(+), 1 deletion(-) diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index a44d022268..91c1b3464c 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs @@ -744,6 +744,33 @@ namespace OpenSim.Data.MSSQL return false; } + /// Appearance + /// TODO: stubs for now to get us to a compiling state gently + override public UserAppearance GetUserAppearance(LLUUID user) + { + return new UserAppearance(); + } + + override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) + { + return; + } + + override public void AddAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public void RemoveAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public List GetAttachments(LLUUID user) + { + return new List(); + } + /// /// Database provider name /// diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 382d69c1bb..a01bf60d42 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs @@ -628,6 +628,33 @@ namespace OpenSim.Data.MySQL return false; } + /// Appearance + /// TODO: stubs for now to get us to a compiling state gently + override public UserAppearance GetUserAppearance(LLUUID user) + { + return new UserAppearance(); + } + + override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) + { + return; + } + + override public void AddAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public void RemoveAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public List GetAttachments(LLUUID user) + { + return new List(); + } + /// /// Database provider name /// diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index ece1c2ddb3..f142ce910d 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs @@ -238,6 +238,33 @@ namespace OpenSim.Data.NHibernate public override bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) {return true;} public override bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory) {return true;} + /// Appearance + /// TODO: stubs for now to get us to a compiling state gently + override public UserAppearance GetUserAppearance(LLUUID user) + { + return new UserAppearance(); + } + + override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) + { + return; + } + + override public void AddAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public void RemoveAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public List GetAttachments(LLUUID user) + { + return new List(); + } + public override string getName() { diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 689137388f..90dec3e2f9 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs @@ -474,6 +474,33 @@ namespace OpenSim.Data.SQLite return true; } + /// Appearance + /// TODO: stubs for now to get us to a compiling state gently + override public UserAppearance GetUserAppearance(LLUUID user) + { + return new UserAppearance(); + } + + override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance) + { + return; + } + + override public void AddAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public void RemoveAttachment(LLUUID user, LLUUID item) + { + return; + } + + override public List GetAttachments(LLUUID user) + { + return new List(); + } + /// /// Returns the name of the storage provider /// diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs index 7ce4bd4895..84ff9b3ebf 100644 --- a/OpenSim/Data/UserDataBase.cs +++ b/OpenSim/Data/UserDataBase.cs @@ -53,5 +53,10 @@ namespace OpenSim.Data public abstract string getName(); public abstract void Initialise(); public abstract List GeneratePickerResults(LLUUID queryID, string query); - } + public abstract UserAppearance GetUserAppearance(LLUUID user); + public abstract void UpdateUserAppearance(LLUUID user, UserAppearance appearance); + public abstract void AddAttachment(LLUUID user, LLUUID item); + public abstract void RemoveAttachment(LLUUID user, LLUUID item); + public abstract List GetAttachments(LLUUID user); + } } diff --git a/OpenSim/Framework/IUserData.cs b/OpenSim/Framework/IUserData.cs index a9268836ec..cd29816c55 100644 --- a/OpenSim/Framework/IUserData.cs +++ b/OpenSim/Framework/IUserData.cs @@ -174,5 +174,17 @@ namespace OpenSim.Framework /// Initialises the plugin (artificial constructor) /// void Initialise(); + + /// + /// Gets the user appearance + /// + UserAppearance GetUserAppearance(LLUUID user); + + void UpdateUserAppearance(LLUUID user, UserAppearance appearance); + + + void AddAttachment(LLUUID user, LLUUID item); + void RemoveAttachment(LLUUID user, LLUUID item); + List GetAttachments(LLUUID user); } } \ No newline at end of file