Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
vmj-qt
Commits
7ee23ac7
Commit
7ee23ac7
authored
Apr 22, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added settings/preferences for sip message
parent
f4614ed9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
163 additions
and
57 deletions
+163
-57
account.py
blink/configuration/account.py
+7
-0
preferences.ui
resources/preferences.ui
+156
-57
No files found.
blink/configuration/account.py
View file @
7ee23ac7
...
@@ -61,6 +61,11 @@ class ServerSettings(SettingsGroup):
...
@@ -61,6 +61,11 @@ class ServerSettings(SettingsGroup):
settings_url
=
Setting
(
type
=
HTTPURL
,
default
=
None
,
nillable
=
True
)
settings_url
=
Setting
(
type
=
HTTPURL
,
default
=
None
,
nillable
=
True
)
class
SMSSettings
(
SettingsGroup
):
use_cpim
=
Setting
(
type
=
bool
,
default
=
True
)
enable_iscomposing
=
Setting
(
type
=
bool
,
default
=
True
)
class
SoundSettings
(
SettingsGroup
):
class
SoundSettings
(
SettingsGroup
):
inbound_ringtone
=
Setting
(
type
=
SoundFile
,
default
=
None
,
nillable
=
True
)
inbound_ringtone
=
Setting
(
type
=
SoundFile
,
default
=
None
,
nillable
=
True
)
...
@@ -79,6 +84,7 @@ class AccountExtension(SettingsObjectExtension):
...
@@ -79,6 +84,7 @@ class AccountExtension(SettingsObjectExtension):
rtp
=
RTPSettingsExtension
rtp
=
RTPSettingsExtension
server
=
ServerSettings
server
=
ServerSettings
sip
=
SIPSettingsExtension
sip
=
SIPSettingsExtension
sms
=
SMSSettings
sounds
=
SoundSettings
sounds
=
SoundSettings
xcap
=
XCAPSettingsExtension
xcap
=
XCAPSettingsExtension
...
@@ -88,6 +94,7 @@ class BonjourAccountExtension(SettingsObjectExtension):
...
@@ -88,6 +94,7 @@ class BonjourAccountExtension(SettingsObjectExtension):
presence
=
PresenceSettingsExtension
presence
=
PresenceSettingsExtension
rtp
=
RTPSettingsExtension
rtp
=
RTPSettingsExtension
sip
=
BonjourSIPSettings
sip
=
BonjourSIPSettings
sms
=
SMSSettings
sounds
=
SoundSettings
sounds
=
SoundSettings
resources/preferences.ui
View file @
7ee23ac7
...
@@ -1237,11 +1237,11 @@
...
@@ -1237,11 +1237,11 @@
</property>
</property>
</widget>
</widget>
</widget>
</widget>
<widget
class=
"QWidget"
name=
"
advanced
_tab"
>
<widget
class=
"QWidget"
name=
"
sms
_tab"
>
<attribute
name=
"title"
>
<attribute
name=
"title"
>
<string>
Advanced
</string>
<string>
Messages
</string>
</attribute>
</attribute>
<layout
class=
"QGridLayout"
name=
"
advanced_tab_layout
"
>
<layout
class=
"QGridLayout"
name=
"
gridLayout_3
"
>
<property
name=
"leftMargin"
>
<property
name=
"leftMargin"
>
<number>
10
</number>
<number>
10
</number>
</property>
</property>
...
@@ -1257,42 +1257,102 @@
...
@@ -1257,42 +1257,102 @@
<property
name=
"spacing"
>
<property
name=
"spacing"
>
<number>
5
</number>
<number>
5
</number>
</property>
</property>
<item
row=
"6"
column=
"0"
colspan=
"3"
>
<item
row=
"0"
column=
"0"
>
<spacer
name=
"account_tls_settings_spacer"
>
<widget
class=
"QWidget"
name=
"message_widget"
native=
"true"
>
<property
name=
"minimumSize"
>
<size>
<width>
0
</width>
<height>
0
</height>
</size>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout_2"
>
<property
name=
"leftMargin"
>
<number>
0
</number>
</property>
<property
name=
"topMargin"
>
<number>
0
</number>
</property>
<property
name=
"rightMargin"
>
<number>
0
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item
row=
"4"
column=
"0"
>
<widget
class=
"QCheckBox"
name=
"message_cpim_enabled_button"
>
<property
name=
"text"
>
<string>
Use CPIM envelope
</string>
</property>
</widget>
</item>
<item
row=
"2"
column=
"0"
>
<widget
class=
"Line"
name=
"line_2"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"6"
column=
"0"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
<enum>
Qt::Vertical
</enum>
</property>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<size>
<width>
20
</width>
<width>
20
</width>
<height>
4
0
</height>
<height>
2
0
</height>
</size>
</size>
</property>
</property>
</spacer>
</spacer>
</item>
</item>
<item
row=
"2"
column=
"0"
colspan=
"3
"
>
<item
row=
"1"
column=
"0
"
>
<widget
class=
"QLabel"
name=
"account_tls_settings
_label"
>
<widget
class=
"QLabel"
name=
"message
_label"
>
<property
name=
"font"
>
<property
name=
"font"
>
<font>
<font>
<weight>
75
</weight>
<weight>
75
</weight>
<bold>
true
</bold>
<bold>
true
</bold>
</font>
</font>
</property>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
m
</string>
</property>
<property
name=
"text"
>
<property
name=
"text"
>
<string>
TLS Settings
</string>
<string>
When sending messages
</string>
</property>
<property
name=
"scaledContents"
>
<bool>
false
</bool>
</property>
</property>
</widget>
</widget>
</item>
</item>
<item
row=
"3"
column=
"0"
colspan=
"3
"
>
<item
row=
"5"
column=
"0
"
>
<widget
class=
"Line"
name=
"line_11
"
>
<widget
class=
"QCheckBox"
name=
"message_iscomposing_enabled_button
"
>
<property
name=
"orientation
"
>
<property
name=
"text
"
>
<enum>
Qt::Horizontal
</enum
>
<string>
Enable Is-Composing
</string
>
</property>
</property>
</widget>
</widget>
</item>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget
class=
"QWidget"
name=
"advanced_tab"
>
<attribute
name=
"title"
>
<string>
Advanced
</string>
</attribute>
<layout
class=
"QGridLayout"
name=
"advanced_tab_layout"
>
<property
name=
"leftMargin"
>
<number>
10
</number>
</property>
<property
name=
"topMargin"
>
<number>
10
</number>
</property>
<property
name=
"rightMargin"
>
<number>
10
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
10
</number>
</property>
<property
name=
"spacing"
>
<number>
5
</number>
</property>
<item
row=
"0"
column=
"0"
colspan=
"3"
>
<item
row=
"0"
column=
"0"
colspan=
"3"
>
<widget
class=
"QWidget"
name=
"sip_settings_widget"
native=
"true"
>
<widget
class=
"QWidget"
name=
"sip_settings_widget"
native=
"true"
>
<layout
class=
"QGridLayout"
name=
"sip_settings_widget_layout"
>
<layout
class=
"QGridLayout"
name=
"sip_settings_widget_layout"
>
...
@@ -1504,6 +1564,51 @@
...
@@ -1504,6 +1564,51 @@
</layout>
</layout>
</widget>
</widget>
</item>
</item>
<item
row=
"2"
column=
"0"
colspan=
"3"
>
<widget
class=
"QLabel"
name=
"account_tls_settings_label"
>
<property
name=
"font"
>
<font>
<weight>
75
</weight>
<bold>
true
</bold>
</font>
</property>
<property
name=
"styleSheet"
>
<string
notr=
"true"
>
m
</string>
</property>
<property
name=
"text"
>
<string>
TLS Settings
</string>
</property>
</widget>
</item>
<item
row=
"5"
column=
"0"
>
<widget
class=
"QLabel"
name=
"account_peer_name_label"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Fixed"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
140
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Peer name:
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"3"
column=
"0"
colspan=
"3"
>
<widget
class=
"Line"
name=
"line_11"
>
<property
name=
"orientation"
>
<enum>
Qt::Horizontal
</enum>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
colspan=
"3"
>
<item
row=
"1"
column=
"0"
colspan=
"3"
>
<widget
class=
"QWidget"
name=
"pstn_widget"
native=
"true"
>
<widget
class=
"QWidget"
name=
"pstn_widget"
native=
"true"
>
<layout
class=
"QGridLayout"
name=
"pstn_widget_layout"
>
<layout
class=
"QGridLayout"
name=
"pstn_widget_layout"
>
...
@@ -1679,28 +1784,6 @@
...
@@ -1679,28 +1784,6 @@
</layout>
</layout>
</widget>
</widget>
</item>
</item>
<item
row=
"5"
column=
"0"
>
<widget
class=
"QLabel"
name=
"account_peer_name_label"
>
<property
name=
"sizePolicy"
>
<sizepolicy
hsizetype=
"Fixed"
vsizetype=
"Preferred"
>
<horstretch>
0
</horstretch>
<verstretch>
0
</verstretch>
</sizepolicy>
</property>
<property
name=
"minimumSize"
>
<size>
<width>
140
</width>
<height>
0
</height>
</size>
</property>
<property
name=
"text"
>
<string>
Peer name:
</string>
</property>
<property
name=
"alignment"
>
<set>
Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter
</set>
</property>
</widget>
</item>
<item
row=
"5"
column=
"1"
colspan=
"2"
>
<item
row=
"5"
column=
"1"
colspan=
"2"
>
<widget
class=
"QLineEdit"
name=
"account_tls_name_editor"
>
<widget
class=
"QLineEdit"
name=
"account_tls_name_editor"
>
<property
name=
"sizePolicy"
>
<property
name=
"sizePolicy"
>
...
@@ -1714,6 +1797,22 @@
...
@@ -1714,6 +1797,22 @@
</property>
</property>
</widget>
</widget>
</item>
</item>
<item
row=
"6"
column=
"1"
>
<spacer
name=
"account_tls_settings_spacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
</property>
<property
name=
"sizeType"
>
<enum>
QSizePolicy::Expanding
</enum>
</property>
<property
name=
"sizeHint"
stdset=
"0"
>
<size>
<width>
20
</width>
<height>
20
</height>
</size>
</property>
</spacer>
</item>
</layout>
</layout>
</widget>
</widget>
</widget>
</widget>
...
@@ -3725,7 +3824,7 @@
...
@@ -3725,7 +3824,7 @@
<customwidget>
<customwidget>
<class>
QWebView
</class>
<class>
QWebView
</class>
<extends>
QWidget
</extends>
<extends>
QWidget
</extends>
<header>
QtWebKitWidgets/QWebView
</header>
<header
location=
"global"
>
QtWebKitWidgets/QWebView
</header>
</customwidget>
</customwidget>
<customwidget>
<customwidget>
<class>
LineEdit
</class>
<class>
LineEdit
</class>
...
...
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