Changeset 03f38cf


Ignore:
Timestamp:
07/28/21 23:35:48 (10 months ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
280f29b
Parents:
bffc77e
Message:

Add active conference to application class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/app/application.h

    rbffc77e r03f38cf  
    2222
    2323#include <QApplication>
     24#include <conference.h>
    2425
    2526class Application : public QApplication
     
    2829
    2930public:
    30     Application(int& argc, char** argv)
    31     : QApplication(argc, argv)
    32     { }
    33     virtual ~Application() { }
     31    Application(int& argc, char** argv): QApplication(argc, argv) {}
     32    virtual ~Application() {}
    3433
    3534    virtual bool notify(QObject* receiver, QEvent* event);
     35
     36    void setActiveConference(Conference& conference) {mActiveConference = conference; mHasActiveConference = true;}
     37    void unsetActiveConference() {mHasActiveConference = false;}
     38    Conference& activeConference() {return mActiveConference;}
     39    bool hasActiveConference() const {return mHasActiveConference;}
     40
     41private:
     42    bool mHasActiveConference = false;
     43    Conference mActiveConference;
    3644};
    3745
Note: See TracChangeset for help on using the changeset viewer.