Molybden API
Loading...
Searching...
No Matches
capture_session.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_CAPTURE_SESSION_HPP
6#define MOLYBDEN_CAPTURE_SESSION_HPP
7
8#include "molybden/base/observable.hpp"
9
10#include <memory>
11
12#include "molybden/capture/capture_session_events.hpp"
13#include "molybden/capture/capture_source.hpp"
14
15namespace molybden {
16
17class Browser;
18
23 public:
24 virtual ~CaptureSession() = default;
25
29 virtual std::shared_ptr<Browser> browser() = 0;
30
34 virtual void stop() = 0;
35
39 virtual bool isActive() = 0;
40
44 virtual CaptureSource source() = 0;
45};
46
47} // namespace molybden
48
49#endif // MOLYBDEN_CAPTURE_SESSION_HPP
A class that contains all capture session events.
Definition capture_session_events.hpp:29
A browser capture session.
Definition capture_session.hpp:22
virtual bool isActive()=0
Indicates whether this capture session is active.
virtual std::shared_ptr< Browser > browser()=0
Returns the browser instance that owns this capture session.
virtual CaptureSource source()=0
Returns the CaptureSource instance for this capture session.
virtual void stop()=0
Stops capturing.
The source for a content capture session.
Definition capture_source.hpp:39