ReactOS  0.4.15-dev-499-g1f31905
available.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <windef.h>
4 #include <atlstr.h>
5 #include <atlsimpcoll.h>
6 #include <atlcoll.h>
7 
8 #include "misc.h"
9 
11 {
18 };
19 
21 {
22  return (x >= LICENSE_MIN && x <= LICENSE_MAX);
23 }
24 
26 {
41 
42  // Caching mechanism related entries
45 
46  // Optional integrity checks (SHA-1 digests are 160 bit = 40 characters in hex string form)
49 
50  // Create an object from file
51  CAvailableApplicationInfo(const ATL::CStringW& sFileNameParam);
52 
53  // Load all info from the file
55  BOOL HasLanguageInfo() const;
56  BOOL HasNativeLanguage() const;
57  BOOL HasEnglishLanguage() const;
58  BOOL IsInstalled() const;
59  BOOL HasInstalledVersion() const;
60  BOOL HasUpdate() const;
61 
62  // Set a timestamp
64 
65 private:
70 
71  inline BOOL GetString(LPCWSTR lpKeyName, ATL::CStringW& ReturnedString);
72 
73  // Lazily load general info from the file
80  inline BOOL FindInLanguages(LCID what) const;
81 };
82 
84 
86 {
93 
95 };
96 
98 {
101 
102 public:
103  CAvailableApps();
104 
105  static BOOL UpdateAppsDB();
106  static BOOL ForceUpdateAppsDB();
107  static VOID DeleteCurrentAppsDB();
108 
110  BOOL Enum(INT EnumType, AVAILENUMPROC lpEnumProc, PVOID param);
111 
115 
116  const ATL::CStringW& GetFolderPath() const;
117  const ATL::CStringW& GetAppPath() const;
118  const ATL::CStringW& GetCabPath() const;
119 };
ATL::CStringW m_szRegName
Definition: available.h:31
BOOL(CALLBACK * AVAILENUMPROC)(CAvailableApplicationInfo *Info, LPCWSTR szFolderPath, PVOID param)
Definition: available.h:83
const ATL::CStringW & GetAppPath() const
Definition: available.cpp:451
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
BOOL HasNativeLanguage() const
Definition: available.cpp:187
ATL::CStringW m_szName
Definition: available.h:30
#define CALLBACK
Definition: compat.h:27
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
ATL::CStringW m_szVersion
Definition: available.h:32
DWORD LCID
Definition: nls.h:13
LicenseType m_LicenseType
Definition: available.h:29
BOOL IsLicenseType(INT x)
Definition: available.h:20
static BOOL UpdateAppsDB()
Definition: available.cpp:286
#define BOOL
Definition: nt_native.h:43
int32_t INT
Definition: typedefs.h:57
struct TraceInfo Info
ATL::CSimpleArray< CAvailableApplicationInfo > GetSelected() const
Definition: available.cpp:429
CAvailableApplicationInfo * FindInfo(const ATL::CStringW &szAppName) const
Definition: available.cpp:394
ATL::CStringW m_szLicense
Definition: available.h:33
ATL::CStringW szCabPath
Definition: available.h:88
unsigned int BOOL
Definition: ntddk_ex.h:94
ATL::CSimpleArray< CAvailableApplicationInfo > FindInfoList(const ATL::CSimpleArray< ATL::CStringW > &arrAppsNames) const
Definition: available.cpp:415
ATL::CStringW m_szDesc
Definition: available.h:34
VOID FreeCachedEntries()
Definition: available.cpp:250
const ATL::CStringW & GetFolderPath() const
Definition: available.cpp:446
BOOL Enum(INT EnumType, AVAILENUMPROC lpEnumProc, PVOID param)
Definition: available.cpp:325
static AvailableStrings m_Strings
Definition: available.h:99
GLfloat param
Definition: glext.h:5796
static VOID DeleteCurrentAppsDB()
Definition: available.cpp:264
ATL::CStringW m_sFileName
Definition: available.h:43
ATL::CStringW m_szUrlDownload
Definition: available.h:37
ATL::CStringW m_szSHA1
Definition: available.h:47
LicenseType
Definition: available.h:10
static BOOL ForceUpdateAppsDB()
Definition: available.cpp:319
ATL::CStringW szCabDir
Definition: available.h:92
TCHAR szAppName[128]
Definition: solitaire.cpp:16
ATL::CAtlList< CAvailableApplicationInfo * > m_InfoList
Definition: available.h:100
VOID SetLastWriteTime(FILETIME *ftTime)
Definition: available.cpp:212
ATL::CStringW szPath
Definition: available.h:87
BOOL HasLanguageInfo() const
Definition: available.cpp:182
BOOL HasInstalledVersion() const
Definition: available.cpp:202
ATL::CStringW m_szUrlSite
Definition: available.h:36
ATL::CStringW szAppsPath
Definition: available.h:89
ATL::CStringW m_szCDPath
Definition: available.h:38
CAvailableApplicationInfo(const ATL::CStringW &sFileNameParam)
Definition: available.cpp:21
BOOL FindInLanguages(LCID what) const
Definition: available.cpp:162
BOOL HasEnglishLanguage() const
Definition: available.cpp:192
ATL::CSimpleArray< LCID > m_LanguageLCIDs
Definition: available.h:39
unsigned int ULONG
Definition: retypes.h:1
const ATL::CStringW & GetCabPath() const
Definition: available.cpp:456
ATL::CStringW m_szSize
Definition: available.h:35
BOOL GetString(LPCWSTR lpKeyName, ATL::CStringW &ReturnedString)
Definition: available.cpp:217
CConfigParser * m_Parser
Definition: available.h:69
ATL::CStringW szSearchPath
Definition: available.h:90
ATL::CStringW szCabName
Definition: available.h:91
ATL::CStringW m_szInstalledVersion
Definition: available.h:48