mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-09 11:52:21 +08:00
28 lines
723 B
C++
28 lines
723 B
C++
|
|
#pragma once
|
|
|
|
#include <QtWidgets>
|
|
#include <spkresource.h>
|
|
|
|
class SpkPageBase : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
SpkPageBase(QWidget *parent = nullptr);
|
|
|
|
public slots:
|
|
/**
|
|
* @brief This signal is emitted by resource manager when a resource acquisition requested
|
|
* has finished.
|
|
* @param id The request ID
|
|
* @param result The data retrieved
|
|
*/
|
|
virtual void ResourceAcquisitionFinished(int id, ResourceResult result);
|
|
|
|
/**
|
|
* @brief This is an optional signal for Resource Context objects, mainly used for notifying the
|
|
* context that it is now activated (therefore it needs to acquire the resource manager).
|
|
*/
|
|
virtual void Activated();
|
|
};
|