Albert
Loading...
Searching...
No Matches
albert::UrlHandler Class Referenceabstract

#include <albert/urlhandler.h>

Inheritance diagram for albert::UrlHandler:
[legend]

Detailed Description

Albert scheme URL handler interface.

Use this interface to register albert: URL handlers based on Extension::id. URLs with the host matching this extension's id are passed to the handle() method. E.g. the URL albert://github/?… will be redirected to the GitHub extension.

Public Member Functions

virtual void handle (const QUrl &url)=0
 Handles the url received.
 
- Public Member Functions inherited from albert::Extension
virtual QString id () const =0
 The identifier of this extension.
 
virtual QString name () const =0
 Pretty, human readable name.
 
virtual QString description () const =0
 Brief description of this extension.
 

Protected Member Functions

 ~UrlHandler () override
 
- Protected Member Functions inherited from albert::Extension
virtual ~Extension ()
 

Constructor & Destructor Documentation

◆ ~UrlHandler()

albert::UrlHandler::~UrlHandler ( )
overrideprotected

Member Function Documentation

◆ handle()

virtual void albert::UrlHandler::handle ( const QUrl &  url)
pure virtual

Handles the url received.


The documentation for this class was generated from the following file: