~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to intern/ghost/GHOST_ISystemPaths.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-03-06 12:08:47 UTC
  • mfrom: (1.5.1) (14.1.8 experimental)
  • Revision ID: package-import@ubuntu.com-20130306120847-frjfaryb2zrotwcg
Tags: 2.66a-1ubuntu1
* Resynchronize with Debian (LP: #1076930, #1089256, #1052743, #999024,
  #1122888, #1147084)
* debian/control:
  - Lower build-depends on libavcodec-dev since we're not
    doing the libav9 transition in Ubuntu yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
public:
39
39
        /**
40
40
         * Creates the one and only system.
41
 
         * @return An indication of success.
 
41
         * \return An indication of success.
42
42
         */
43
43
        static GHOST_TSuccess create();
44
44
 
45
45
        /**
46
46
         * Disposes the one and only system.
47
 
         * @return An indication of success.
 
47
         * \return An indication of success.
48
48
         */
49
49
        static GHOST_TSuccess dispose();
50
50
 
51
51
        /**
52
52
         * Returns a pointer to the one and only system (nil if it hasn't been created).
53
 
         * @return A pointer to the system.
 
53
         * \return A pointer to the system.
54
54
         */
55
 
        static GHOST_ISystemPaths* get();
 
55
        static GHOST_ISystemPaths *get();
56
56
 
57
57
protected:
58
58
        /**
59
59
         * Constructor.
60
60
         * Protected default constructor to force use of static createSystem member.
61
61
         */
62
 
        GHOST_ISystemPaths() {}
 
62
        GHOST_ISystemPaths() {
 
63
        }
63
64
 
64
65
        /**
65
66
         * Destructor.
66
67
         * Protected default constructor to force use of static dispose member.
67
68
         */
68
 
        virtual ~GHOST_ISystemPaths() {}
 
69
        virtual ~GHOST_ISystemPaths() {
 
70
        }
69
71
 
70
72
public:
71
73
        /**
72
74
         * Determine the base dir in which shared resources are located. It will first try to use
73
 
         * "unpack and run" path, then look for properly installed path, not including versioning.
74
 
         * @return Unsigned char string pointing to system dir (eg /usr/share/blender/).
 
75
         * "unpack and run" path, then look for properly installed path, including versioning.
 
76
         * \return Unsigned char string pointing to system dir (eg /usr/share/blender/).
75
77
         */
76
 
        virtual const GHOST_TUns8* getSystemDir() const = 0;
 
78
        virtual const GHOST_TUns8 *getSystemDir(int version, const char *versionstr) const = 0;
77
79
 
78
80
        /**
79
 
         * Determine the base dir in which user configuration is stored, not including versioning.
 
81
         * Determine the base dir in which user configuration is stored, including versioning.
80
82
         * If needed, it will create the base directory.
81
 
         * @return Unsigned char string pointing to user dir (eg ~/.blender/).
 
83
         * \return Unsigned char string pointing to user dir (eg ~/.blender/).
82
84
         */
83
 
        virtual const GHOST_TUns8* getUserDir() const = 0;
 
85
        virtual const GHOST_TUns8 *getUserDir(int version, const char *versionstr) const = 0;
84
86
 
85
87
        /**
86
 
          * Determine the directory of the current binary
87
 
          * @return Unsigned char string pointing to the binary dir
88
 
          */
89
 
        virtual const GHOST_TUns8* getBinaryDir() const = 0;
 
88
         * Determine the directory of the current binary
 
89
         * \return Unsigned char string pointing to the binary dir
 
90
         */
 
91
        virtual const GHOST_TUns8 *getBinaryDir() const = 0;
90
92
 
91
93
        /**
92
94
         * Add the file to the operating system most recently used files
93
95
         */
94
 
        virtual void addToSystemRecentFiles(const char* filename) const = 0;
 
96
        virtual void addToSystemRecentFiles(const char *filename) const = 0;
95
97
 
96
98
private:
97
99
        /** The one and only system paths*/
98
 
        static GHOST_ISystemPaths* m_systemPaths;
 
100
        static GHOST_ISystemPaths *m_systemPaths;
 
101
 
 
102
 
 
103
#ifdef WITH_CXX_GUARDEDALLOC
 
104
        MEM_CXX_CLASS_ALLOC_FUNCS("GHOST:GHOST_ISystemPaths")
 
105
#endif
99
106
};
100
107
 
101
108
#endif