xref: /haiku/src/apps/webpositive/CookieWindow.h (revision c302a243e15e640fae0f689e32cdf0c18749afee)
1 /*
2  * Copyright 2015 Haiku, Inc. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Adrien Destugues
7  */
8 #ifndef COOKIE_WINDOW_H
9 #define COOKIE_WINDOW_H
10 
11 
12 #include <Window.h>
13 
14 
15 class BColumnListView;
16 class BNetworkCookieJar;
17 class BOutlineListView;
18 class BStringItem;
19 class BStringView;
20 class BString;
21 
22 
23 class CookieWindow : public BWindow {
24 public:
25 								CookieWindow(BRect frame,
26 									BNetworkCookieJar& jar);
27 	virtual	void				MessageReceived(BMessage* message);
28 	virtual void				Show();
29 	virtual	bool				QuitRequested();
30 
31 private:
32 			void				_BuildDomainList();
33 			BStringItem*		_AddDomain(BString domain, bool fake);
34 			void				_ShowCookiesForDomain(BString domain);
35 			void				_DeleteCookies();
36 
37 private:
38 	BOutlineListView*			fDomains;
39 	BColumnListView*			fCookies;
40 	BStringView*				fHeaderView;
41 
42 	BNetworkCookieJar&			fCookieJar;
43 };
44 
45 
46 #endif // COOKIE_WINDOW_H
47 
48