aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices
diff options
context:
space:
mode:
authorAdam Frisby2007-05-31 10:47:38 +0000
committerAdam Frisby2007-05-31 10:47:38 +0000
commit9505128e6f4a043e589898bd9129a629afd5bddf (patch)
treedd10f0c82096ba86b77b8dced8007e49c9177e38 /OpenGridServices
parent* Raised "MTU" factor in world map handling (diff)
downloadopensim-SC_OLD-9505128e6f4a043e589898bd9129a629afd5bddf.zip
opensim-SC_OLD-9505128e6f4a043e589898bd9129a629afd5bddf.tar.gz
opensim-SC_OLD-9505128e6f4a043e589898bd9129a629afd5bddf.tar.bz2
opensim-SC_OLD-9505128e6f4a043e589898bd9129a629afd5bddf.tar.xz
The start of a beautiful thing! (eeek inventory!)
Diffstat (limited to 'OpenGridServices')
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs39
-rw-r--r--OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs31
2 files changed, 70 insertions, 0 deletions
diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
new file mode 100644
index 0000000..8950458
--- /dev/null
+++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
@@ -0,0 +1,39 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenGrid.Framework.Data.MySQL
6{
7 class MySQLInventoryData
8 {
9 public MySQLManager database;
10
11 public void Initialise()
12 {
13 IniFile GridDataMySqlFile = new IniFile("mysql_connection.ini");
14 string settingHostname = GridDataMySqlFile.ParseFileReadValue("hostname");
15 string settingDatabase = GridDataMySqlFile.ParseFileReadValue("database");
16 string settingUsername = GridDataMySqlFile.ParseFileReadValue("username");
17 string settingPassword = GridDataMySqlFile.ParseFileReadValue("password");
18 string settingPooling = GridDataMySqlFile.ParseFileReadValue("pooling");
19 string settingPort = GridDataMySqlFile.ParseFileReadValue("port");
20
21 database = new MySQLManager(settingHostname, settingDatabase, settingUsername, settingPassword, settingPooling, settingPort);
22 }
23
24 public string getName()
25 {
26 return "MySQL Logdata Interface";
27 }
28
29 public void Close()
30 {
31 // Do nothing.
32 }
33
34 public string getVersion()
35 {
36 return "0.1";
37 }
38 }
39}
diff --git a/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs
new file mode 100644
index 0000000..628868f
--- /dev/null
+++ b/OpenGridServices/OpenGrid.Framework.Data/InventoryData.cs
@@ -0,0 +1,31 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenGrid.Framework.Data
6{
7 public interface IInventoryData
8 {
9 /// <summary>
10 /// Initialises the interface
11 /// </summary>
12 void Initialise();
13
14 /// <summary>
15 /// Closes the interface
16 /// </summary>
17 void Close();
18
19 /// <summary>
20 /// The plugin being loaded
21 /// </summary>
22 /// <returns>A string containing the plugin name</returns>
23 string getName();
24
25 /// <summary>
26 /// The plugins version
27 /// </summary>
28 /// <returns>A string containing the plugin version</returns>
29 string getVersion();
30 }
31}