1/*
2 * Copyright 2007-2009 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _CHECKITOUT_H
6#define _CHECKITOUT_H
7
8#include <Application.h>
9#include <String.h>
10
11
12class CheckItOut : public BApplication
13{
14public:
15								CheckItOut();
16								~CheckItOut();
17
18	virtual void				RefsReceived(BMessage* msg);
19	virtual void				MessageReceived(BMessage* msg);
20	virtual void				ArgvReceived(int32 argc, char** argv);
21	virtual void				ReadyToRun(void);
22
23private:
24			status_t			_Warn(const char* url);
25			status_t			_DecodeUrlString(BString& string);
26			status_t			_FilePanel(uint32 nodeFlavors, BString &name);
27			status_t			_DoCheckItOut(entry_ref *ref, const char *name);
28
29	BString						fUrlString;
30};
31
32#endif // _CHECKITOUT_H
33
34