Stephan Aßmus de9dcd41f8 Patch by plfiorini: Integration of InfoPopper as a system service. See ticket
#1245. There are some TODOs outlined in the ticket, but they will be much
easier to review as individual patches against trunk, versus as a new version
of the huge patch.

I've messed a lot with src/servers/notification/NotificationsView.cpp in order
to resolve a crash I was getting when testing this thing (rewrote line
wrapping). I've also replaced the icons with the one that zuMi did long ago.

Thanks, plfiorini, for working on this code as much as you did!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-05-27 14:48:27 +00:00

40 lines
813 B
C++

/*
* Copyright 2010, Haiku, Inc. All Rights Reserved.
* Copyright 2009, Pier Luigi Fiorini.
* Distributed under the terms of the MIT License.
*/
#ifndef _GENERAL_VIEW_H
#define _GENERAL_VIEW_H
#include "SettingsPane.h"
class BCheckBox;
class BButton;
class BStringView;
class BTextControl;
class GeneralView : public SettingsPane {
public:
GeneralView(SettingsHost* host);
virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* msg);
// SettingsPane hooks
status_t Load();
status_t Save();
status_t Revert();
private:
BButton* fServerButton;
BStringView* fStatusLabel;
BCheckBox* fAutoStart;
BTextControl* fTimeout;
BCheckBox* fHideAll;
bool _CanFindServer(entry_ref* ref);
bool _IsServerRunning();
};
#endif // _GENERAL_VIEW_H