mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
This allows gui widgets to utilise native platform interfaces. Additionally attaching the instance to QgsGui allows QgsNative to become a QObject in future if required and for use of signals/slots in the native interfaces.
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
/***************************************************************************
|
|
qgsnative.h - abstracted interface to native system calls
|
|
-------------------
|
|
begin : January 2017
|
|
copyright : (C) 2017 by Matthias Kuhn
|
|
email : matthias@opengis.ch
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef QGSNATIVE_H
|
|
#define QGSNATIVE_H
|
|
|
|
#include "qgis_native.h"
|
|
|
|
/**
|
|
* \class QgsNative
|
|
* \ingroup native
|
|
* Base class for implementing methods for native system calls that
|
|
* are implemented in subclasses to provide platform abstraction.
|
|
* \since QGIS 3.0
|
|
*/
|
|
class NATIVE_EXPORT QgsNative
|
|
{
|
|
public:
|
|
|
|
virtual ~QgsNative() = default;
|
|
|
|
/**
|
|
* Brings the QGIS app to front. The default implementation does nothing.
|
|
*/
|
|
virtual void currentAppActivateIgnoringOtherApps();
|
|
};
|
|
|
|
#endif // QGSNATIVE_H
|