SLikeNet 0.1.3

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AutopatcherRepositoryInterface.h
Go to the documentation of this file.
1 /*
2 * Original work: Copyright (c) 2014, Oculus VR, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * RakNet License.txt file in the licenses directory of this source tree. An additional grant
7 * of patent rights can be found in the RakNet Patents.txt file in the same directory.
8 *
9 *
10 * Modified work: Copyright (c) 2017, SLikeSoft UG (haftungsbeschränkt)
11 *
12 * This source code was modified by SLikeSoft. Modifications are licensed under the MIT-style
13 * license found in the license.txt file in the root directory of this source tree.
14 */
15
20
21
22 #ifndef __AUTOPATCHER_REPOSITORY_INTERFACE_H
23 #define __AUTOPATCHER_REPOSITORY_INTERFACE_H
24
25 #include "IncrementalReadInterface.h"
26 #include "SimpleMutex.h"
27
28 namespace SLNet
29 {
31 class FileList;
32 class BitStream;
33
35 class AutopatcherRepositoryInterface : public IncrementalReadInterface
36 {
37 public:
45 virtual bool GetChangelistSinceDate(const char *applicationName, FileList *addedOrModifiedFilesWithHashData, FileList *deletedFiles, double sinceDate)=0;
46
53 virtual int GetPatches(const char *applicationName, FileList *input, bool allowDownloadOfOriginalUnmodifiedFiles, FileList *patchList)=0;
54
63 virtual bool GetMostRecentChangelistWithPatches(
64 SLNet::RakString &applicationName,
65 FileList *patchedFiles,
66 FileList *updatedFiles,
67 FileList *addedOrModifiedFileHashes,
68 FileList *deletedFiles,
69 double *priorRowPatchTime,
70 double *mostRecentRowPatchTime)=0;
71
73 virtual const char *GetLastError(void) const=0;
74
76 virtual const int GetIncrementalReadChunkSize(void) const=0;
77 };
78
79 } // namespace SLNet
80
81 #endif
82