aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs
blob: 72c013930a7ff8fbff0931eac88f8c9fddb96d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;

namespace OpenGrid.Framework.Data.MySQL
{
    class MySQLInventoryData : IInventoryData
    {
        public MySQLManager database;

        public void Initialise()
        {
            IniFile GridDataMySqlFile = new IniFile("mysql_connection.ini");
            string settingHostname = GridDataMySqlFile.ParseFileReadValue("hostname");
            string settingDatabase = GridDataMySqlFile.ParseFileReadValue("database");
            string settingUsername = GridDataMySqlFile.ParseFileReadValue("username");
            string settingPassword = GridDataMySqlFile.ParseFileReadValue("password");
            string settingPooling = GridDataMySqlFile.ParseFileReadValue("pooling");
            string settingPort = GridDataMySqlFile.ParseFileReadValue("port");

            database = new MySQLManager(settingHostname, settingDatabase, settingUsername, settingPassword, settingPooling, settingPort);
        }
        
        public string getName()
        {
            return "MySQL Inventory Data Interface";
        }

        public void Close()
        {
            // Do nothing.
        }

        public string getVersion()
        {
            return "0.1";
        }

        public List<InventoryItemBase> getInventoryInFolder(LLUUID folderID)
        {
            return null;
        }

        public List<InventoryFolderBase> getUserRootFolders(LLUUID user)
        {
            return null;
        }

        public List<InventoryFolderBase> getInventoryFolders(LLUUID parentID)
        {
            return null;
        }

        public InventoryItemBase getInventoryItem(LLUUID item)
        {
            return null;
        }

        public InventoryFolderBase getInventoryFolder(LLUUID folder)
        {
            return null;
        }
    }
}