summaryrefslogtreecommitdiff
path: root/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/ICursor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/ICursor.cs')
-rwxr-xr-xsrc/Tizen.Applications.DataControl/Tizen.Applications.DataControl/ICursor.cs81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/ICursor.cs b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/ICursor.cs
new file mode 100755
index 0000000..4136358
--- /dev/null
+++ b/src/Tizen.Applications.DataControl/Tizen.Applications.DataControl/ICursor.cs
@@ -0,0 +1,81 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+using System;
+
+namespace Tizen.Applications.DataControl
+{
+ /// <summary>
+ /// This interface is for DataControl cursor.
+ /// </summary>
+ public interface ICursor
+ {
+ /// <summary>
+ /// Gets a column count.
+ /// </summary>
+ int GetColumnCount();
+ /// <summary>
+ /// Gets a column type.
+ /// </summary>
+ /// <param name="index">The index of column.</param>
+ ColumnType GetColumnType(int index);
+ /// <summary>
+ /// Gets a column name.
+ /// </summary>
+ /// <param name="index">The index of column.</param>
+ string GetColumnName(int index);
+ /// <summary>
+ /// Gets the numbers of rows in the cursor.
+ /// </summary>
+ long GetRowCount();
+ /// <summary>
+ /// Gets a next row.
+ /// </summary>
+ bool Next();
+ /// <summary>
+ /// Gets a prev row.
+ /// </summary>
+ bool Prev();
+ /// <summary>
+ /// Gets a first row.
+ /// </summary>
+ bool Reset();
+ /// <summary>
+ /// / Gets an int value.
+ /// </summary>
+ /// <param name="index">The index of row.</param>
+ int GetIntValue(int index);
+ /// <summary>
+ /// / Gets an int64 value.
+ /// </summary>
+ /// <param name="index">The index of row.</param>
+ Int64 GetInt64Value(int index);
+ /// <summary>
+ /// Gets an double value.
+ /// </summary>
+ /// <param name="index">The index of row.</param>
+ double GetDoubleValue(int index);
+ /// <summary>
+ /// Gets an string value.
+ /// </summary>
+ /// <param name="index">The index of row.</param>
+ string GetStringValue(int index);
+ /// <summary>
+ /// Gets a blob value.
+ /// </summary>
+ /// <param name="index">The index of row.</param>
+ byte[] GetBlobValue(int index);
+ }
+} \ No newline at end of file