• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kate

KateSessionManager Class Reference

#include <katesession.h>

Inheritance diagram for KateSessionManager:

Inheritance graph
[legend]

List of all members.


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  ) 

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.

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]

show dialog to manage our sessions

Definition at line 588 of file katesession.cpp.

void KateSessionManager::sessionNew (  )  [slot]

try to start a new session asks user first for name

Definition at line 522 of file katesession.cpp.

void KateSessionManager::sessionOpen (  )  [slot]

try to open a existing session

Definition at line 527 of file katesession.cpp.

void KateSessionManager::sessionSave (  )  [slot]

try to save current session

Definition at line 547 of file katesession.cpp.

void KateSessionManager::sessionSaveAs (  )  [slot]

try to save as current session

Definition at line 569 of file katesession.cpp.

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

session dir

Returns:
global session dir

Definition at line 227 of file katesession.h.

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:
  • katesession.h
  • katesession.cpp

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • kate
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal