Skip to content

Commit 573f28a

Browse files
carolinuxelpaso
authored andcommitted
Made methods protected and added descriptions
1 parent a7515ad commit 573f28a

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/python/qgspythonutilsimpl.h

+19-7
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ class QgsPythonUtilsImpl : public QgsPythonUtils
4545
bool startServerPlugin( QString packageName ) override;
4646
#endif
4747

48-
// functions that do the initialization work
49-
bool checkSystemImports();
50-
bool checkQgisUser();
51-
void doUserImports();
52-
void init();
53-
void finish();
54-
5548
//! close python interpreter
5649
void exitPython() override;
5750

@@ -121,6 +114,25 @@ class QgsPythonUtilsImpl : public QgsPythonUtils
121114

122115
protected:
123116

117+
/* functions that do the initialization work */
118+
119+
//! initialize Python context
120+
void init();
121+
122+
//! check qgis imports and plugins
123+
//@return true if all imports worked
124+
bool checkSystemImports();
125+
126+
//@return true if qgis.user could be imported
127+
bool checkQgisUser();
128+
129+
//! import user defined Python code
130+
void doUserImports();
131+
132+
//! cleanup Python context
133+
void finish();
134+
135+
124136
void installErrorHook();
125137

126138
void uninstallErrorHook();

0 commit comments

Comments
 (0)