blob: c07a48cb05531369d38a696789fccf587cb23404 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CFCBundle.h ---------------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef CoreFoundationCPP_CFBundle_h_
11#define CoreFoundationCPP_CFBundle_h_
12
13#include "CFCReleaser.h"
14
15class CFCBundle : public CFCReleaser<CFBundleRef>
16{
17public:
18 //------------------------------------------------------------------
19 // Constructors and Destructors
20 //------------------------------------------------------------------
21 CFCBundle (const char *path = NULL);
22 CFCBundle (CFURLRef url);
23
24 virtual
25 ~CFCBundle();
26
27 CFURLRef
28 CopyExecutableURL () const;
29
30 CFStringRef
31 GetIdentifier () const;
32
33 CFTypeRef
34 GetValueForInfoDictionaryKey(CFStringRef key) const;
35
36 bool
37 SetPath (const char *path);
38
39private:
40 // Disallow copy and assignment constructors
41 CFCBundle(const CFCBundle&);
42
43 const CFCBundle&
44 operator=(const CFCBundle&);
45};
46
47#endif // #ifndef CoreFoundationCPP_CFBundle_h_