mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
![Joachim Henze](/assets/img/avatar_default.png)
* 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
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);
|
|
};
|