summaryrefslogtreecommitdiffstats
path: root/kate/app/katesession.h
diff options
context:
space:
mode:
Diffstat (limited to 'kate/app/katesession.h')
-rw-r--r--kate/app/katesession.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kate/app/katesession.h b/kate/app/katesession.h
index 50db624b6..665ac867b 100644
--- a/kate/app/katesession.h
+++ b/kate/app/katesession.h
@@ -245,6 +245,11 @@ class KateSessionManager : public TQObject
const TQString& getBaseDir() const { return m_baseDir; }
/**
+ * @return the number of existing sessions
+ */
+ int getSessionCount() const { return m_sessions.count(); }
+
+ /**
* @return the active session id
*/
int getActiveSessionId() const { return m_activeSessionId; }