reactos/base/applications/rapps/include/appdb.h
Joachim Henze a9b1e059f4
[RAPPS] Style-addendum, no functional change (#5091)
* Just rename the 4 new files. Absolutely no other change.
* CMakeLists.txt, adapt the filenames
* Adapt all includes to make it compile
* CApplicationDB->CAppDB
* CApplicationInfo->CAppInfo
* Follow Mark Jansens good example and antipad the headers
2023-02-28 01:00:29 +01:00

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);
};