From 6d6117e0196e8aabccee2a8879b0b6ad950ab3ab Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Sat, 5 May 2007 23:04:47 +0000
Subject: You can now save profiles to a database. (Zomg!)
---
OpenGrid.Framework.Data/GridData.cs | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'OpenGrid.Framework.Data')
diff --git a/OpenGrid.Framework.Data/GridData.cs b/OpenGrid.Framework.Data/GridData.cs
index 3b052fb..d5516b2 100644
--- a/OpenGrid.Framework.Data/GridData.cs
+++ b/OpenGrid.Framework.Data/GridData.cs
@@ -4,6 +4,14 @@ using System.Text;
namespace OpenGrid.Framework.Data
{
+ public enum DataResponse
+ {
+ RESPONSE_OK,
+ RESPONSE_AUTHREQUIRED,
+ RESPONSE_INVALIDCREDENTIALS,
+ RESPONSE_ERROR
+ }
+
///
/// A standard grid interface
///
@@ -54,5 +62,12 @@ namespace OpenGrid.Framework.Data
///
/// A string containing the plugin version
string getVersion();
+
+ ///
+ /// Adds a new profile to the database
+ ///
+ /// The profile to add
+ /// RESPONSE_OK if successful, error if not.
+ DataResponse AddProfile(SimProfileData profile);
}
}
--
cgit v1.1