Adding a new column to alias manager called priority.
Separating alias manager from the main pref window. git-svn-id: svn://10.0.0.236/trunk@155087 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "nsISupports.idl"
|
||||
|
||||
interface nsIRDFResource;
|
||||
interface nsISimpleEnumerator;
|
||||
interface mozISqlConnection;
|
||||
|
||||
/**
|
||||
@@ -77,13 +78,15 @@ interface mozISqlService : nsISupports
|
||||
* @param aHostname hostname for the database
|
||||
* @param aPort port for the database
|
||||
* @param aDatabase database name
|
||||
* @param aPriority priority
|
||||
* @return an RDF resource representing the alias
|
||||
*/
|
||||
nsIRDFResource addAlias(in AString aName,
|
||||
in AString aType,
|
||||
in AString aHostname,
|
||||
in long aPort,
|
||||
in AString aDatabase);
|
||||
in AString aDatabase,
|
||||
in long aPriority);
|
||||
|
||||
/**
|
||||
* Retrieves alias information. The out parameters are filled in with
|
||||
@@ -95,13 +98,15 @@ interface mozISqlService : nsISupports
|
||||
* @param aHostname hostname of the database
|
||||
* @param aPort port of the database
|
||||
* @param aDatabase database name
|
||||
* @param aPriority priority
|
||||
*/
|
||||
void fetchAlias(in nsIRDFResource aAlias,
|
||||
out AString aName,
|
||||
out AString aType,
|
||||
out AString aHostname,
|
||||
out long aPort,
|
||||
out AString aDatabase);
|
||||
out AString aDatabase,
|
||||
out long aPriority);
|
||||
|
||||
/**
|
||||
* Update the information of an alias that has already been added. The new
|
||||
@@ -114,13 +119,15 @@ interface mozISqlService : nsISupports
|
||||
* @param aHostname hostname for the database
|
||||
* @param aPort port for the database
|
||||
* @param aDatabase database name
|
||||
* @param aPriority priority
|
||||
*/
|
||||
void updateAlias(in nsIRDFResource aAlias,
|
||||
in AString aName,
|
||||
in AString aType,
|
||||
in AString aHostname,
|
||||
in long aPort,
|
||||
in AString aDatabase);
|
||||
in AString aDatabase,
|
||||
in long aPriority);
|
||||
|
||||
/**
|
||||
* Removes an alias that already exists.
|
||||
@@ -137,6 +144,14 @@ interface mozISqlService : nsISupports
|
||||
*/
|
||||
nsIRDFResource getAlias(in AString aName);
|
||||
|
||||
/**
|
||||
* Get the aliases with the given name.
|
||||
*
|
||||
* @param aName the name of the aliases to retrieve
|
||||
* @return an enumerator for the aliases
|
||||
*/
|
||||
nsISimpleEnumerator getAliases(in AString aName);
|
||||
|
||||
/**
|
||||
* Retrieves an SQL connection to a database given its alias. If a
|
||||
* connection is already open, that connection is returned. Otherwise,
|
||||
|
||||
Reference in New Issue
Block a user