BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / packageinstaller / PackageStatus.h
blob2e1b9bfa583bbee55777e52fea20bbcc9506e348
1 /*
2 * Copyright (c) 2007, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Author:
6 * Ɓukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7 */
8 #ifndef PACKAGESTATUS_H
9 #define PACKAGESTATUS_H
11 #include <Window.h>
12 #include <View.h>
13 #include <Button.h>
14 #include <StatusBar.h>
17 enum {
18 P_MSG_NEXT_STAGE = 'psne',
19 P_MSG_STOP,
20 P_MSG_RESET
24 class StopButton : public BButton {
25 public:
26 StopButton();
27 virtual void Draw(BRect);
31 class PackageStatus : public BWindow {
32 public:
33 PackageStatus(const char *title, const char *label = NULL,
34 const char *trailing = NULL, BHandler *parent = NULL);
35 ~PackageStatus();
37 void MessageReceived(BMessage *msg);
38 void Reset(uint32 stages, const char *label = NULL,
39 const char *trailing = NULL);
40 void StageStep(uint32 count, const char *text = NULL,
41 const char *trailing = NULL);
42 bool Stopped();
44 private:
45 BStatusBar *fStatus;
46 StopButton *fButton;
47 bool fIsStopped;
48 BHandler *fParent;
52 #endif