TIVI-153: Add as dependency for iputils
[profile/ivi/opensp.git] / include / URLStorage.h
1 // Copyright (c) 1995 James Clark
2 // See the file COPYING for copying permission.
3
4 #ifndef URLStorage_INCLUDED
5 #define URLStorage_INCLUDED 1
6 #ifdef __GNUG__
7 #pragma interface
8 #endif
9
10 #include "StorageManager.h"
11
12 #ifdef SP_NAMESPACE
13 namespace SP_NAMESPACE {
14 #endif
15
16 class SP_API URLStorageManager : public IdStorageManager {
17 public:
18   URLStorageManager(const char *type);
19   StorageObject *makeStorageObject(const StringC &id,
20                                    const StringC &baseId,
21                                    Boolean search,
22                                    Boolean mayRewind,
23                                    Messenger &,
24                                    StringC &found); 
25   const char *type() const;
26   Boolean guessIsId(const StringC &, const CharsetInfo &) const;
27   Boolean transformNeutral(StringC &, Boolean fold, Messenger &) const;
28 private:
29   Boolean resolveRelative(const StringC &base, StringC &specId, Boolean) const;
30   URLStorageManager(const URLStorageManager &); // undefined
31   void operator=(const URLStorageManager &);    // undefined
32   const char *type_;
33 };
34
35 #ifdef SP_NAMESPACE
36 }
37 #endif
38
39 #endif /* not URLStorage_INCLUDED */