KateSessionManager Class Reference

List of all members.

Detailed Description

Definition at line 163 of file katesession.h.


Public Slots

void sessionNew ()
void sessionOpen ()
void sessionSave ()
void sessionSaveAs ()
void sessionManage ()

Public Member Functions

 KateSessionManager (QObject *parent)
 ~KateSessionManager ()
KateSessionList & sessionList ()
void activateSession (KateSession::Ptr session, bool closeLast=true, bool saveLast=true, bool loadNew=true)
KateSession::Ptr createSession (const QString &name)
KateSession::Ptr giveSession (const QString &name)
bool saveActiveSession (bool tryAsk=false, bool rememberAsLast=false)
KateSession::Ptr activeSession ()
const QString & sessionsDir () const
bool chooseSession ()
void updateSessionList ()

Static Public Member Functions

static KateSessionManagerself ()

Member Function Documentation

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::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::createSession ( const QString &  name  ) 

create a new session

Parameters:
name session name

Definition at line 345 of file katesession.cpp.

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.

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.

const QString& KateSessionManager::sessionsDir (  )  const [inline]

session dir

Returns:
global session dir

Definition at line 227 of file katesession.h.

bool KateSessionManager::chooseSession (  ) 

initial session chooser, on app start

Returns:
success, if false, app should exit

Definition at line 441 of file katesession.cpp.

void KateSessionManager::sessionNew (  )  [slot]

try to start a new session asks user first for name

Definition at line 523 of file katesession.cpp.

void KateSessionManager::sessionOpen (  )  [slot]

try to open a existing session

Definition at line 528 of file katesession.cpp.

void KateSessionManager::sessionSave (  )  [slot]

try to save current session

Definition at line 548 of file katesession.cpp.

void KateSessionManager::sessionSaveAs (  )  [slot]

try to save as current session

Definition at line 570 of file katesession.cpp.

void KateSessionManager::sessionManage (  )  [slot]

show dialog to manage our sessions

Definition at line 589 of file katesession.cpp.

void KateSessionManager::updateSessionList (  ) 

trigger update of session list

Definition at line 231 of file katesession.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys