aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/IPrimCounts.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/IPrimCounts.cs (renamed from OpenSim/Data/SQLiteLegacy/SQLiteAvatarData.cs)80
1 files changed, 40 insertions, 40 deletions
diff --git a/OpenSim/Data/SQLiteLegacy/SQLiteAvatarData.cs b/OpenSim/Framework/IPrimCounts.cs
index 660632c..3e12348 100644
--- a/OpenSim/Data/SQLiteLegacy/SQLiteAvatarData.cs
+++ b/OpenSim/Framework/IPrimCounts.cs
@@ -25,50 +25,50 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
29using System.Collections.Generic;
30using System.Data;
31using System.Reflection;
32using System.Threading;
33using log4net;
34using OpenMetaverse; 28using OpenMetaverse;
35using OpenSim.Framework;
36using Mono.Data.SqliteClient;
37 29
38namespace OpenSim.Data.SQLiteLegacy 30namespace OpenSim.Framework
39{ 31{
40 /// <summary> 32 public interface IPrimCounts
41 /// A SQLite Interface for Avatar Data
42 /// </summary>
43 public class SQLiteAvatarData : SQLiteGenericTableHandler<AvatarBaseData>,
44 IAvatarData
45 { 33 {
46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 34 /// <summary>
35 /// Parcel owner owned prims
36 /// </summary>
37 int Owner { get; }
38
39 /// <summary>
40 /// Parcel group owned prims
41 /// </summary>
42 int Group { get; }
43
44 /// <summary>
45 /// Prims owned by others (not parcel owner or parcel group).
46 /// </summary>
47 int Others { get; }
47 48
48 public SQLiteAvatarData(string connectionString, string realm) : 49 /// <summary>
49 base(connectionString, realm, "Avatar") 50 /// Selected prims
50 { 51 /// </summary>
51 } 52 int Selected { get; }
52 53
53 public bool Delete(UUID principalID, string name) 54 /// <summary>
54 { 55 /// Total prims on the parcel.
55 SqliteCommand cmd = new SqliteCommand(); 56 /// </summary>
56 57 int Total { get; }
57 cmd.CommandText = String.Format("delete from {0} where `PrincipalID` = :PrincipalID and `Name` = :Name", m_Realm); 58
58 cmd.Parameters.Add(":PrincipalID", principalID.ToString()); 59 /// <summary>
59 cmd.Parameters.Add(":Name", name); 60 /// Prims on the simulator that are owned by the parcel owner, even if they are in other parcels.
60 61 /// </summary>
61 try 62 int Simulator { get; }
62 { 63
63 if (ExecuteNonQuery(cmd, m_Connection) > 0) 64 /// <summary>
64 return true; 65 /// Prims per individual users.
66 /// </summary>
67 IUserPrimCounts Users { get; }
68 }
65 69
66 return false; 70 public interface IUserPrimCounts
67 } 71 {
68 finally 72 int this[UUID agentID] { get; }
69 {
70 CloseCommand(cmd);
71 }
72 }
73 } 73 }
74} 74} \ No newline at end of file