BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / packageinstaller / PackageInstall.h
blobb9564676c0199ddb70e229add9e817a41b6fc2ca
1 /*
2 * Copyright (c) 2010-2014, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Author:
6 * Ɓukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7 */
8 #ifndef PACKAGE_INSTALL_H
9 #define PACKAGE_INSTALL_H
12 #include <Locker.h>
15 class PackageView;
16 class PackageScript;
18 enum {
19 P_MSG_I_FINISHED = 'pifi',
20 P_MSG_I_ABORT = 'piab',
21 P_MSG_I_ERROR = 'pier'
25 class PackageInstall {
26 public:
27 PackageInstall(PackageView* parent);
28 ~PackageInstall();
30 status_t Start();
31 void Stop();
32 void Install();
34 private:
35 uint32 _Install();
37 private:
38 PackageView* fParent;
39 thread_id fThreadId;
40 BLocker fIdLocker;
42 PackageScript* fCurrentScript;
43 BLocker fCurrentScriptLocker;
44 int32 fItemExistsPolicy;
48 #endif // PACKAGE_INSTALL_H