///
/// Copyright © 2003-2008 JetBrains s.r.o.
/// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder).
///
using System;
using System.IO;
using JetBrains.Interop.WinApi;
using JetBrains.Omea.Base;
using Microsoft.Win32;
namespace JetBrains.Omea.InstantMessaging.Miranda
{
/**
* The class responsible for locating the Miranda database we are
* going to use.
*/
internal class ProfileManager
{
internal static string[] GetProfileList()
{
string profileDir = GetProfileDir();
if ( profileDir == null || !Directory.Exists( profileDir ) )
{
return new string[] {};
}
string[] databases = Directory.GetFiles( profileDir, "*.dat" );
string[] databaseNames = new string [databases.Length];
for( int i=0; i