diff --git a/src/apps/installer/InstallerCopyLoopControl.cpp b/src/apps/installer/InstallerCopyLoopControl.cpp index fc52016f38..326b8a67ce 100644 --- a/src/apps/installer/InstallerCopyLoopControl.cpp +++ b/src/apps/installer/InstallerCopyLoopControl.cpp @@ -4,41 +4,11 @@ * */ #include "InstallerCopyLoopControl.h" - -/* copied from libtracker, because beos loader doesn't seem to find them correctly in libtracker.so */ - -/*BPrivate::CopyLoopControl::~CopyLoopControl() -{ -} - -void -BPrivate::CopyLoopControl::ChecksumChunk(const char *, size_t) -{ -} - - -bool -BPrivate::CopyLoopControl::ChecksumFile(const entry_ref *) -{ - return true; -} - - -bool -BPrivate::CopyLoopControl::SkipAttribute(const char*) -{ - return false; -} - - -bool -BPrivate::CopyLoopControl::PreserveAttribute(const char*) -{ - return false; -}*/ +#include "InstallerWindow.h" InstallerCopyLoopControl::InstallerCopyLoopControl(InstallerWindow *window) - : fWindow(window) + : fWindow(window), + fMessenger(window) { } @@ -55,6 +25,11 @@ void InstallerCopyLoopControl::UpdateStatus(const char *name, entry_ref ref, int32 count, bool optional) { + if (name) { + BMessage msg(STATUS_MESSAGE); + msg.AddString("status", name); + fMessenger.SendMessage(&msg); + } } diff --git a/src/apps/installer/InstallerCopyLoopControl.h b/src/apps/installer/InstallerCopyLoopControl.h index b3ec64364e..24dff86b73 100644 --- a/src/apps/installer/InstallerCopyLoopControl.h +++ b/src/apps/installer/InstallerCopyLoopControl.h @@ -38,6 +38,7 @@ public: private: InstallerWindow *fWindow; + BMessenger fMessenger; }; #endif diff --git a/src/apps/installer/InstallerWindow.cpp b/src/apps/installer/InstallerWindow.cpp index cb9916542e..7fc93481ee 100644 --- a/src/apps/installer/InstallerWindow.cpp +++ b/src/apps/installer/InstallerWindow.cpp @@ -164,7 +164,6 @@ InstallerWindow::MessageReceived(BMessage *msg) StartScan(); break; case BEGIN_MESSAGE: - printf("BEGIN_MESSAGE\n"); BMessenger(&fCopyEngine).SendMessage(ENGINE_START); break; case SHOW_BOTTOM_MESSAGE: @@ -218,6 +217,7 @@ InstallerWindow::QuitRequested() return false; } be_app->PostMessage(B_QUIT_REQUESTED); + fCopyEngine.PostMessage(B_QUIT_REQUESTED); return true; }