이 페이지에서

Core::SessionManager Class

class Core::SessionManager

SessionManager 클래스는 세션을 관리합니다. 더 보기...

Header: #include <SessionManager>
Inherits: QObject

정적 공용 멤버

bool confirmSessionDelete(const QStringList &sessions)
bool createSession(const QString &session)
bool deleteSession(const QString &session)
QString lastSession()
void setValue(const Utils::Key &name, const QVariant &value)
QString startupSession()

상세 설명

TODO: 이 클래스의 인터페이스는 그다지 훌륭하지 않습니다. 공개 인터페이스의 모든 함수가 실제 작업을 수행하는 함수를 단순히 감싸고 있을 뿐이라 구현에 문제가 있습니다. 이 부분은 개선될 여지가 있습니다.

멤버 함수 문서

[static] bool SessionManager::confirmSessionDelete(const QStringList &sessions)

지정된 sessions 의 삭제를 확인하라는 대화 상자를 표시합니다.

사용자가 삭제를 확인했는지 여부를 반환합니다.

[static] bool SessionManager::createSession(const QString &session)

session 를 생성하지만, 실제로 파일을 생성하지는 않습니다.

생성이 성공했는지 여부를 반환합니다.

[static] bool SessionManager::deleteSession(const QString &session)

세션 목록에서 ‘ session ’ 이름을 삭제하고 디스크에서 해당 파일을 삭제합니다.

삭제가 성공했는지 여부를 반환합니다.

[static] QString SessionManager::lastSession()

사용자가 마지막으로 연 세션을 반환합니다.

[static] void SessionManager::setValue(const Utils::Key &name, const QVariant &value)

다른 플러그인이 name 및 value 에 지정된 영구 값을 세션 파일에 저장할 수 있도록 합니다.

[static] QString SessionManager::startupSession()

Qt Creator 가 마지막으로 닫혔을 때 활성화되어 있던 세션이 있다면, 해당 세션을 반환합니다.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.