aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean Dague2008-05-01 20:16:26 +0000
committerSean Dague2008-05-01 20:16:26 +0000
commit86d2e53d1f616eea8603533e9cba236fbae275ef (patch)
tree890e0d6c8b06f4199fe05a6835d35ec94028ebd6
parentremove db4o from prebuild. It isn't removed from the tree yet, (diff)
downloadopensim-SC-86d2e53d1f616eea8603533e9cba236fbae275ef.zip
opensim-SC-86d2e53d1f616eea8603533e9cba236fbae275ef.tar.gz
opensim-SC-86d2e53d1f616eea8603533e9cba236fbae275ef.tar.bz2
opensim-SC-86d2e53d1f616eea8603533e9cba236fbae275ef.tar.xz
added stubs for appearance bits to all the db layers
-rw-r--r--OpenSim/Data/MSSQL/MSSQLUserData.cs27
-rw-r--r--OpenSim/Data/MySQL/MySQLUserData.cs27
-rw-r--r--OpenSim/Data/NHibernate/NHibernateUserData.cs27
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserData.cs27
-rw-r--r--OpenSim/Data/UserDataBase.cs7
-rw-r--r--OpenSim/Framework/IUserData.cs12
6 files changed, 126 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs
index a44d022..91c1b34 100644
--- a/OpenSim/Data/MSSQL/MSSQLUserData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs
@@ -744,6 +744,33 @@ namespace OpenSim.Data.MSSQL
744 return false; 744 return false;
745 } 745 }
746 746
747 /// Appearance
748 /// TODO: stubs for now to get us to a compiling state gently
749 override public UserAppearance GetUserAppearance(LLUUID user)
750 {
751 return new UserAppearance();
752 }
753
754 override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance)
755 {
756 return;
757 }
758
759 override public void AddAttachment(LLUUID user, LLUUID item)
760 {
761 return;
762 }
763
764 override public void RemoveAttachment(LLUUID user, LLUUID item)
765 {
766 return;
767 }
768
769 override public List<LLUUID> GetAttachments(LLUUID user)
770 {
771 return new List<LLUUID>();
772 }
773
747 /// <summary> 774 /// <summary>
748 /// Database provider name 775 /// Database provider name
749 /// </summary> 776 /// </summary>
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs
index 382d69c..a01bf60 100644
--- a/OpenSim/Data/MySQL/MySQLUserData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserData.cs
@@ -628,6 +628,33 @@ namespace OpenSim.Data.MySQL
628 return false; 628 return false;
629 } 629 }
630 630
631 /// Appearance
632 /// TODO: stubs for now to get us to a compiling state gently
633 override public UserAppearance GetUserAppearance(LLUUID user)
634 {
635 return new UserAppearance();
636 }
637
638 override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance)
639 {
640 return;
641 }
642
643 override public void AddAttachment(LLUUID user, LLUUID item)
644 {
645 return;
646 }
647
648 override public void RemoveAttachment(LLUUID user, LLUUID item)
649 {
650 return;
651 }
652
653 override public List<LLUUID> GetAttachments(LLUUID user)
654 {
655 return new List<LLUUID>();
656 }
657
631 /// <summary> 658 /// <summary>
632 /// Database provider name 659 /// Database provider name
633 /// </summary> 660 /// </summary>
diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs
index ece1c2d..f142ce9 100644
--- a/OpenSim/Data/NHibernate/NHibernateUserData.cs
+++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs
@@ -238,6 +238,33 @@ namespace OpenSim.Data.NHibernate
238 public override bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) {return true;} 238 public override bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) {return true;}
239 public override bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory) {return true;} 239 public override bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory) {return true;}
240 240
241 /// Appearance
242 /// TODO: stubs for now to get us to a compiling state gently
243 override public UserAppearance GetUserAppearance(LLUUID user)
244 {
245 return new UserAppearance();
246 }
247
248 override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance)
249 {
250 return;
251 }
252
253 override public void AddAttachment(LLUUID user, LLUUID item)
254 {
255 return;
256 }
257
258 override public void RemoveAttachment(LLUUID user, LLUUID item)
259 {
260 return;
261 }
262
263 override public List<LLUUID> GetAttachments(LLUUID user)
264 {
265 return new List<LLUUID>();
266 }
267
241 268
242 public override string getName() 269 public override string getName()
243 { 270 {
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index 6891373..90dec3e 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -474,6 +474,33 @@ namespace OpenSim.Data.SQLite
474 return true; 474 return true;
475 } 475 }
476 476
477 /// Appearance
478 /// TODO: stubs for now to get us to a compiling state gently
479 override public UserAppearance GetUserAppearance(LLUUID user)
480 {
481 return new UserAppearance();
482 }
483
484 override public void UpdateUserAppearance(LLUUID user, UserAppearance appearance)
485 {
486 return;
487 }
488
489 override public void AddAttachment(LLUUID user, LLUUID item)
490 {
491 return;
492 }
493
494 override public void RemoveAttachment(LLUUID user, LLUUID item)
495 {
496 return;
497 }
498
499 override public List<LLUUID> GetAttachments(LLUUID user)
500 {
501 return new List<LLUUID>();
502 }
503
477 /// <summary> 504 /// <summary>
478 /// Returns the name of the storage provider 505 /// Returns the name of the storage provider
479 /// </summary> 506 /// </summary>
diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs
index 7ce4bd4..84ff9b3 100644
--- a/OpenSim/Data/UserDataBase.cs
+++ b/OpenSim/Data/UserDataBase.cs
@@ -53,5 +53,10 @@ namespace OpenSim.Data
53 public abstract string getName(); 53 public abstract string getName();
54 public abstract void Initialise(); 54 public abstract void Initialise();
55 public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query); 55 public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query);
56 } 56 public abstract UserAppearance GetUserAppearance(LLUUID user);
57 public abstract void UpdateUserAppearance(LLUUID user, UserAppearance appearance);
58 public abstract void AddAttachment(LLUUID user, LLUUID item);
59 public abstract void RemoveAttachment(LLUUID user, LLUUID item);
60 public abstract List<LLUUID> GetAttachments(LLUUID user);
61 }
57} 62}
diff --git a/OpenSim/Framework/IUserData.cs b/OpenSim/Framework/IUserData.cs
index a926883..cd29816 100644
--- a/OpenSim/Framework/IUserData.cs
+++ b/OpenSim/Framework/IUserData.cs
@@ -174,5 +174,17 @@ namespace OpenSim.Framework
174 /// Initialises the plugin (artificial constructor) 174 /// Initialises the plugin (artificial constructor)
175 /// </summary> 175 /// </summary>
176 void Initialise(); 176 void Initialise();
177
178 /// <summary>
179 /// Gets the user appearance
180 /// </summer>
181 UserAppearance GetUserAppearance(LLUUID user);
182
183 void UpdateUserAppearance(LLUUID user, UserAppearance appearance);
184
185
186 void AddAttachment(LLUUID user, LLUUID item);
187 void RemoveAttachment(LLUUID user, LLUUID item);
188 List<LLUUID> GetAttachments(LLUUID user);
177 } 189 }
178} \ No newline at end of file 190} \ No newline at end of file