kate
KateSessionManager Class Reference
#include <katesession.h>
Public Slots | |
void | sessionManage () |
void | sessionNew () |
void | sessionOpen () |
void | sessionSave () |
void | sessionSaveAs () |
Public Member Functions | |
void | activateSession (KateSession::Ptr session, bool closeLast=true, bool saveLast=true, bool loadNew=true) |
KateSession::Ptr | activeSession () |
bool | chooseSession () |
KateSession::Ptr | createSession (const QString &name) |
KateSession::Ptr | giveSession (const QString &name) |
KateSessionManager (QObject *parent) | |
bool | saveActiveSession (bool tryAsk=false, bool rememberAsLast=false) |
KateSessionList & | sessionList () |
const QString & | sessionsDir () const |
void | updateSessionList () |
~KateSessionManager () | |
Static Public Member Functions | |
static KateSessionManager * | self () |
Detailed Description
Definition at line 163 of file katesession.h.
Constructor & Destructor Documentation
KateSessionManager::KateSessionManager | ( | QObject * | parent | ) |
Definition at line 206 of file katesession.cpp.
KateSessionManager::~KateSessionManager | ( | ) |
Definition at line 217 of file katesession.cpp.
Member Function Documentation
void KateSessionManager::activateSession | ( | KateSession::Ptr | session, | |
bool | closeLast = true , |
|||
bool | saveLast = true , |
|||
bool | loadNew = true | |||
) |
activate a session first, it will look if a session with this name exists in list if yes, it will use this session, else it will create a new session file
- Parameters:
-
session session to activate closeLast try to close last session or not? saveLast try to save last session or not? loadNew load new session stuff?
Definition at line 257 of file katesession.cpp.
KateSession::Ptr KateSessionManager::activeSession | ( | ) | [inline] |
return the current active session sessionFile == empty means we have no session around for this instance of kate
- Returns:
- session active atm
Definition at line 221 of file katesession.h.
bool KateSessionManager::chooseSession | ( | ) |
initial session chooser, on app start
- Returns:
- success, if false, app should exit
Definition at line 440 of file katesession.cpp.
KateSession::Ptr KateSessionManager::createSession | ( | const QString & | name | ) |
KateSession::Ptr KateSessionManager::giveSession | ( | const QString & | name | ) |
return session with given name if no existing session matches, create new one with this name
- Parameters:
-
name session name
Definition at line 353 of file katesession.cpp.
bool KateSessionManager::saveActiveSession | ( | bool | tryAsk = false , |
|
bool | rememberAsLast = false | |||
) |
save current session for sessions without filename: save nothing
- Parameters:
-
tryAsk should we ask user if needed? rememberAsLast remember this session as last used?
- Returns:
- success
Definition at line 369 of file katesession.cpp.
KateSessionManager * KateSessionManager::self | ( | ) | [static] |
allow access to this :)
- Returns:
- instance of the session manager
Definition at line 221 of file katesession.cpp.
KateSessionList& KateSessionManager::sessionList | ( | ) | [inline] |
allow access to the session list kept up to date by watching the dir
Definition at line 181 of file katesession.h.
void KateSessionManager::sessionManage | ( | ) | [slot] |
void KateSessionManager::sessionNew | ( | ) | [slot] |
void KateSessionManager::sessionOpen | ( | ) | [slot] |
void KateSessionManager::sessionSave | ( | ) | [slot] |
void KateSessionManager::sessionSaveAs | ( | ) | [slot] |
const QString& KateSessionManager::sessionsDir | ( | ) | const [inline] |
void KateSessionManager::updateSessionList | ( | ) |
The documentation for this class was generated from the following files: