mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
a9b1e059f4
* 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
35 lines
584 B
C++
35 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);
|
|
};
|