xref: /haiku/src/preferences/notifications/SettingsPane.cpp (revision a3e794ae459fec76826407f8ba8c94cd3535f128)
1 /*
2  * Copyright 2010, Haiku, Inc. All Rights Reserved.
3  * Copyright 2009, Pier Luigi Fiorini.
4  * Distributed under the terms of the MIT License.
5  *
6  * Authors:
7  *		Pier Luigi Fiorini, pierluigi.fiorini@gmail.com
8  */
9 
10 #include <Message.h>
11 
12 #include "SettingsPane.h"
13 #include "SettingsHost.h"
14 
15 
16 SettingsPane::SettingsPane(const char* name, SettingsHost* host)
17 	:
18 	BView(name, B_WILL_DRAW),
19 	fHost(host)
20 {
21 }
22 
23 
24 void
25 SettingsPane::MessageReceived(BMessage* msg)
26 {
27 	switch (msg->what) {
28 		case kSettingChanged:
29 			fHost->SettingChanged();
30 			break;
31 		default:
32 			BView::MessageReceived(msg);
33 	}
34 }
35