Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-libclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-libclient
Commits
0ffeb737
Commit
0ffeb737
authored
5 years ago
by
Philippe Gorley
Committed by
Andreas Traczyk
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add recording preferences
Change-Id: I2bc789fbd026e5f2b2090b1428a3c2c34e54a52d
parent
2b72a3e9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/api/avmodel.h
+31
-1
31 additions, 1 deletion
src/api/avmodel.h
src/avmodel.cpp
+36
-0
36 additions, 0 deletions
src/avmodel.cpp
src/qtwrapper/configurationmanager_wrap.h
+16
-0
16 additions, 0 deletions
src/qtwrapper/configurationmanager_wrap.h
with
83 additions
and
1 deletion
src/api/avmodel.h
+
31
−
1
View file @
0ffeb737
...
...
@@ -203,9 +203,39 @@ public:
std
::
string
getRecordPath
()
const
;
/**
* Sets the recording path
* @param recording path
* @param
path
recording path
*/
void
setRecordPath
(
const
std
::
string
&
path
)
const
;
/**
* Whether or not to record every call
* @return always recording
*/
bool
getAlwaysRecord
()
const
;
/**
* Sets whether or not to record every call
* @param rec always recording
*/
void
setAlwaysRecord
(
const
bool
&
rec
)
const
;
/**
* Whether or not local video is recorded
* @return recording preview
*/
bool
getRecordPreview
()
const
;
/**
* Sets whether or not to record local video
* @param rec recording preview
*/
void
setRecordPreview
(
const
bool
&
rec
)
const
;
/**
* Gets the quality used while recording
* @return recording quality
*/
int
getRecordQuality
()
const
;
/**
* Sets the recording quality
* @param quality recording quality
*/
void
setRecordQuality
(
const
int
&
quality
)
const
;
/**
* Start preview renderer. This will start the camera
...
...
This diff is collapsed.
Click to expand it.
src/avmodel.cpp
+
36
−
0
View file @
0ffeb737
...
...
@@ -447,6 +447,42 @@ AVModel::setRecordPath(const std::string& path) const
ConfigurationManager
::
instance
().
setRecordPath
(
QString
::
fromStdString
(
path
).
toUtf8
());
}
bool
AVModel
::
getAlwaysRecord
()
const
{
return
ConfigurationManager
::
instance
().
getIsAlwaysRecording
();
}
void
AVModel
::
setAlwaysRecord
(
const
bool
&
rec
)
const
{
ConfigurationManager
::
instance
().
setIsAlwaysRecording
(
rec
);
}
bool
AVModel
::
getRecordPreview
()
const
{
return
ConfigurationManager
::
instance
().
getRecordPreview
();
}
void
AVModel
::
setRecordPreview
(
const
bool
&
rec
)
const
{
ConfigurationManager
::
instance
().
setRecordPreview
(
rec
);
}
int
AVModel
::
getRecordQuality
()
const
{
return
ConfigurationManager
::
instance
().
getRecordQuality
();
}
void
AVModel
::
setRecordQuality
(
const
int
&
rec
)
const
{
ConfigurationManager
::
instance
().
setRecordQuality
(
rec
);
}
void
AVModel
::
useAVFrame
(
bool
useAVFrame
)
{
pimpl_
->
useAVFrame_
=
useAVFrame
;
...
...
This diff is collapsed.
Click to expand it.
src/qtwrapper/configurationmanager_wrap.h
+
16
−
0
View file @
0ffeb737
...
...
@@ -336,6 +336,14 @@ public Q_SLOTS: // METHODS
return
temp
;
}
bool
getRecordPreview
()
{
return
DRing
::
getRecordPreview
();
}
int
getRecordQuality
()
{
return
DRing
::
getRecordQuality
();
}
QStringList
getSupportedAudioManagers
()
{
QStringList
temp
;
return
temp
;
...
...
@@ -525,6 +533,14 @@ public Q_SLOTS: // METHODS
DRing
::
setRecordPath
(
rec
.
toStdString
());
}
void
setRecordPreview
(
const
bool
&
rec
)
{
DRing
::
setRecordPreview
(
rec
);
}
void
setRecordQuality
(
const
int
&
quality
)
{
DRing
::
setRecordQuality
(
quality
);
}
void
setVolume
(
const
QString
&
device
,
double
value
)
{
DRing
::
setVolume
(
device
.
toStdString
(),
value
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment