mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 21:02:04 +08:00
实现应用列表和SpkResource
SpkResource现有已知问题:首次使用不会完全进行所有任务。
This commit is contained in:
27
inc/page/spkpagebase.h
Normal file
27
inc/page/spkpagebase.h
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QScrollArea>
|
||||
#include <spkresource.h>
|
||||
|
||||
class SpkPageBase : public QScrollArea
|
||||
{
|
||||
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();
|
||||
};
|
||||
Reference in New Issue
Block a user