Albert
Loading...
Searching...
No Matches
urlhandler.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Manuel Schneider
2// SPDX-License-Identifier: MIT
3
4#pragma once
5#include <albert/export.h>
6#include <albert/extension.h>
7class QUrl;
8
9namespace albert
10{
11
21class ALBERT_EXPORT UrlHandler : virtual public Extension
22{
23public:
24
28 virtual void handle(const QUrl &url) = 0;
29
30protected:
31
32 ~UrlHandler() override;
33};
34}
Abstract extension class.
Definition extension.h:19
Albert scheme URL handler interface.
Definition urlhandler.h:22
virtual void handle(const QUrl &url)=0
Handles the url received.
~UrlHandler() override
Definition app.h:56