Mapper  0.9.0
API documentation
Public Member Functions | List of all members
OpenOrienteering::MapperServiceProxy Class Reference

A class which helps to run a service alongside the application. More...

#include <mapper_service_proxy.h>

Public Member Functions

 MapperServiceProxy ()=default
 
 ~MapperServiceProxy ()
 
QWidgetactiveWindow ()
 
void setActiveWindow (QWidget *widget)
 

Detailed Description

A class which helps to run a service alongside the application.

The service is started by setting a non-null active window, and stopped by setting the active window to null.

On Android, this utility runs a foregound service with a notification showing the app name and the file name. Running a foreground service increases the app's importance with regard to power management and continuous location access, and it makes the user aware of the app when it is in the background.

On other platforms, this class does nothing at the moment.

Constructor & Destructor Documentation

◆ MapperServiceProxy()

OpenOrienteering::MapperServiceProxy::MapperServiceProxy ( )
default

◆ ~MapperServiceProxy()

OpenOrienteering::MapperServiceProxy::~MapperServiceProxy ( )

Member Function Documentation

◆ activeWindow()

QWidget* OpenOrienteering::MapperServiceProxy::activeWindow ( )
inline

◆ setActiveWindow()

void OpenOrienteering::MapperServiceProxy::setActiveWindow ( QWidget widget)

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