Mostly style-related changes to package kit:
* drop 'Haiku' namespace * rename 'Package' namespace to 'BPackageKit' * renamed all public classes to begin with a 'B' * renamed BPackageKit::Roster to BPackageKit::BPackageRoster to not clash with the BRoster from the application kit. * fix some instances of public headers including private ones Some functional changes, too: * JobQueue now removes and deletes dependants of failed jobs automatically * JobQueue supports waiting for jobs to become runnable * added a couple of InitCheck() methods where they make sense and invoke those in users of these classes git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40287 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
* Copyright 2011, Haiku, Inc.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _HAIKU__PACKAGE__REFRESH_REPOSITORY_REQUEST_H_
|
||||
#define _HAIKU__PACKAGE__REFRESH_REPOSITORY_REQUEST_H_
|
||||
#ifndef _PACKAGE__REFRESH_REPOSITORY_REQUEST_H_
|
||||
#define _PACKAGE__REFRESH_REPOSITORY_REQUEST_H_
|
||||
|
||||
|
||||
#include <Entry.h>
|
||||
@@ -14,43 +14,41 @@
|
||||
#include <package/Request.h>
|
||||
|
||||
|
||||
namespace Haiku {
|
||||
|
||||
namespace Package {
|
||||
namespace BPackageKit {
|
||||
|
||||
|
||||
namespace Private {
|
||||
namespace BPrivate {
|
||||
class ValidateChecksumJob;
|
||||
}
|
||||
using Private::ValidateChecksumJob;
|
||||
using BPrivate::ValidateChecksumJob;
|
||||
|
||||
class RefreshRepositoryRequest : public Request {
|
||||
typedef Request inherited;
|
||||
|
||||
class BRefreshRepositoryRequest : public BRequest {
|
||||
typedef BRequest inherited;
|
||||
|
||||
public:
|
||||
RefreshRepositoryRequest(const Context& context,
|
||||
const RepositoryConfig& repoConfig);
|
||||
virtual ~RefreshRepositoryRequest();
|
||||
BRefreshRepositoryRequest(
|
||||
const BContext& context,
|
||||
const BRepositoryConfig& repoConfig);
|
||||
virtual ~BRefreshRepositoryRequest();
|
||||
|
||||
virtual status_t CreateInitialJobs();
|
||||
|
||||
protected:
|
||||
// JobStateListener
|
||||
virtual void JobSucceeded(Job* job);
|
||||
// BJobStateListener
|
||||
virtual void JobSucceeded(BJob* job);
|
||||
|
||||
private:
|
||||
status_t _FetchRepositoryCache();
|
||||
|
||||
BEntry fFetchedChecksumFile;
|
||||
RepositoryConfig fRepoConfig;
|
||||
BRepositoryConfig fRepoConfig;
|
||||
|
||||
ValidateChecksumJob* fValidateChecksumJob;
|
||||
};
|
||||
|
||||
|
||||
} // namespace Package
|
||||
|
||||
} // namespace Haiku
|
||||
} // namespace BPackageKit
|
||||
|
||||
|
||||
#endif // _HAIKU__PACKAGE__REFRESH_REPOSITORY_REQUEST_H_
|
||||
#endif // _PACKAGE__REFRESH_REPOSITORY_REQUEST_H_
|
||||
|
||||
Reference in New Issue
Block a user