[chronojump/chronojump-importer: 41/66] Adds documentation.



commit 03ff60710cba4757dffde22ce4409c7d5be06a99
Author: Carles Pina i Estany <carles pina cat>
Date:   Wed Sep 14 08:21:31 2016 +0100

    Adds documentation.

 src/sqlite/session.cs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/sqlite/session.cs b/src/sqlite/session.cs
index d1698fb..6d4ec35 100644
--- a/src/sqlite/session.cs
+++ b/src/sqlite/session.cs
@@ -26,8 +26,19 @@ using Mono.Data.Sqlite;
 using Mono.Unix;
 using System.Collections.Generic;
 
+
 public class SqliteSessionSwitcher
 {
+       /** SqliteSessionSwitcher implements two methods that SqliteSesion class had (SelectAllSessions and 
Select).
+       * These methods are used by SessionLoadWindow and depending on the parameters passed to the
+       * SqliteSessionSwitcher constructor:
+       * -it might use the static methods of SqliteSession (so it will access the main chronojump.db file)
+       * -it might use a specific database (depends on databasePath)
+       * 
+       * Doing this SessionLoadWindow can display sessions from other databases when SessionLoadWindow
+       * is used to import sessions from another Chronojump database instead of displaying sessions of the 
current
+       * database.
+       */
        private string databasePath;
        private DatabaseType type;
        public enum DatabaseType


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]