Offline IM: moved the Data and MySQL bits to the corresponding places in core, so that it will be easier to plugin a SQLite backend, if anyone is interested in doing that.

user_profiles
Diva Canto 2013-02-19 06:37:20 -08:00
parent 9e460f2af8
commit 46e182dbf5
6 changed files with 5 additions and 13 deletions

View File

@ -29,7 +29,7 @@ using System.Collections.Generic;
using OpenSim.Data;
using OpenMetaverse;
namespace OpenSim.OfflineIM
namespace OpenSim.Data
{
public class OfflineIMData
{

View File

@ -36,16 +36,10 @@ using OpenSim.Data.MySQL;
using OpenMetaverse;
using MySql.Data.MySqlClient;
namespace OpenSim.OfflineIM
namespace OpenSim.Data.MySQL
{
public class MySQLOfflineIMData : MySQLGenericTableHandler<OfflineIMData>, IOfflineIMData
{
protected override Assembly Assembly
{
// WARNING! Moving migrations to this assembly!!!
get { return GetType().Assembly; }
}
public MySQLOfflineIMData(string connectionString, string realm)
: base(connectionString, realm, "IM_Store")
{

View File

@ -542,9 +542,9 @@
;; URL of web service for offline message storage. Leave it commented if your service is local to the sim.
; OfflineMessageURL = http://yourserver/Offline.php or http://yourrobustserver:8003
;# {StorageProvider} {Offline Message Module V2:Offline Message Module V2} {DLL that provides the storage interface} {OpenSim.Addons.OfflineIM}
;; For standalones, use the service directly. This is the storage dll.
; StorageProvider = OpenSim.Addons.OfflineIM.dll
;# {StorageProvider} {Offline Message Module V2:Offline Message Module V2} {DLL that provides the storage interface} {OpenSim.Data.MySQL.dll}
;; For standalones, this is the storage dll.
; StorageProvider = OpenSim.Data.MySQL.dll
;# {MuteListModule} {OfflineMessageModule:OfflineMessageModule} {} {} MuteListModule
;; Mute list handler (not yet implemented). MUST BE SET to allow offline

View File

@ -548,6 +548,5 @@ HGAssetServiceConnector = "HGAssetService@8002/OpenSim.Server.Handlers.dll:Asset
[Messaging]
; OfflineIM
StorageProvider = "OpenSim.Addons.OfflineIM.dll"
OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"

View File

@ -334,7 +334,6 @@ MapGetServiceConnector = "8002/OpenSim.Server.Handlers.dll:MapGetServiceConnecto
[Messaging]
; OfflineIM
StorageProvider = "OpenSim.Addons.OfflineIM.dll"
OfflineIMService = "OpenSim.Addons.OfflineIM.dll:OfflineIMService"
[GridInfoService]