mirror of
https://github.com/reactos/reactos.git
synced 2024-07-21 11:48:04 +00:00
36 lines
584 B
C
36 lines
584 B
C
|
#pragma once
|
||
|
|
||
|
#include <atlcoll.h>
|
||
|
#include <atlpath.h>
|
||
|
|
||
|
#include "appinfo.h"
|
||
|
|
||
|
class CAppDB
|
||
|
{
|
||
|
private:
|
||
|
CPathW m_BasePath;
|
||
|
CAtlList<CAppInfo *> m_Available;
|
||
|
CAtlList<CAppInfo *> m_Installed;
|
||
|
|
||
|
BOOL
|
||
|
EnumerateFiles();
|
||
|
|
||
|
public:
|
||
|
CAppDB(const CStringW &path);
|
||
|
|
||
|
VOID
|
||
|
GetApps(CAtlList<CAppInfo *> &List, AppsCategories Type) const;
|
||
|
CAppInfo *
|
||
|
FindByPackageName(const CStringW &name);
|
||
|
|
||
|
VOID
|
||
|
UpdateAvailable();
|
||
|
VOID
|
||
|
UpdateInstalled();
|
||
|
VOID
|
||
|
RemoveCached();
|
||
|
|
||
|
BOOL
|
||
|
RemoveInstalledAppFromRegistry(const CAppInfo *Info);
|
||
|
};
|