Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
d452b2dd
Commit
d452b2dd
authored
Jul 11, 2013
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused methods
parent
ab09c2b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
50 deletions
+0
-50
UBPersistenceManager.cpp
src/core/UBPersistenceManager.cpp
+0
-44
UBPersistenceManager.h
src/core/UBPersistenceManager.h
+0
-6
No files found.
src/core/UBPersistenceManager.cpp
View file @
d452b2dd
...
@@ -935,47 +935,3 @@ void UBPersistenceManager::checkIfDocumentRepositoryExists()
...
@@ -935,47 +935,3 @@ void UBPersistenceManager::checkIfDocumentRepositoryExists()
UBApplication
::
quit
();
UBApplication
::
quit
();
}
}
}
}
bool
UBPersistenceManager
::
mayHaveVideo
(
UBDocumentProxy
*
pDocumentProxy
)
{
QDir
videoDir
(
pDocumentProxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
videoDirectory
);
return
videoDir
.
exists
()
&&
videoDir
.
entryInfoList
().
length
()
>
0
;
}
bool
UBPersistenceManager
::
mayHaveAudio
(
UBDocumentProxy
*
pDocumentProxy
)
{
QDir
audioDir
(
pDocumentProxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
audioDirectory
);
return
audioDir
.
exists
()
&&
audioDir
.
entryInfoList
().
length
()
>
0
;
}
bool
UBPersistenceManager
::
mayHavePDF
(
UBDocumentProxy
*
pDocumentProxy
)
{
QDir
objectDir
(
pDocumentProxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
objectDirectory
);
QStringList
filters
;
filters
<<
"*.pdf"
;
return
objectDir
.
exists
()
&&
objectDir
.
entryInfoList
(
filters
).
length
()
>
0
;
}
bool
UBPersistenceManager
::
mayHaveSVGImages
(
UBDocumentProxy
*
pDocumentProxy
)
{
QDir
imageDir
(
pDocumentProxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
imageDirectory
);
QStringList
filters
;
filters
<<
"*.svg"
;
return
imageDir
.
exists
()
&&
imageDir
.
entryInfoList
(
filters
).
length
()
>
0
;
}
bool
UBPersistenceManager
::
mayHaveWidget
(
UBDocumentProxy
*
pDocumentProxy
)
{
QDir
widgetDir
(
pDocumentProxy
->
persistencePath
()
+
"/"
+
UBPersistenceManager
::
widgetDirectory
);
return
widgetDir
.
exists
()
&&
widgetDir
.
entryInfoList
(
QDir
::
Dirs
).
length
()
>
0
;
}
src/core/UBPersistenceManager.h
View file @
d452b2dd
...
@@ -109,12 +109,6 @@ class UBPersistenceManager : public QObject
...
@@ -109,12 +109,6 @@ class UBPersistenceManager : public QObject
bool
addGraphicsWidgteToDocument
(
UBDocumentProxy
*
mDocumentProxy
,
QString
path
,
QUuid
objectUuid
,
QString
&
destinationPath
);
bool
addGraphicsWidgteToDocument
(
UBDocumentProxy
*
mDocumentProxy
,
QString
path
,
QUuid
objectUuid
,
QString
&
destinationPath
);
bool
addFileToDocument
(
UBDocumentProxy
*
pDocumentProxy
,
QString
path
,
const
QString
&
subdir
,
QUuid
objectUuid
,
QString
&
destinationPath
,
QByteArray
*
data
=
NULL
);
bool
addFileToDocument
(
UBDocumentProxy
*
pDocumentProxy
,
QString
path
,
const
QString
&
subdir
,
QUuid
objectUuid
,
QString
&
destinationPath
,
QByteArray
*
data
=
NULL
);
bool
mayHaveVideo
(
UBDocumentProxy
*
pDocumentProxy
);
bool
mayHaveAudio
(
UBDocumentProxy
*
pDocumentProxy
);
bool
mayHavePDF
(
UBDocumentProxy
*
pDocumentProxy
);
bool
mayHaveSVGImages
(
UBDocumentProxy
*
pDocumentProxy
);
bool
mayHaveWidget
(
UBDocumentProxy
*
pDocumentProxy
);
signals
:
signals
:
void
proxyListChanged
();
void
proxyListChanged
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment