Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
bf9fba42
Commit
bf9fba42
authored
Oct 17, 2017
by
Ronan
Browse files
fix(DialPlan): indent code correctly, avoid usage of deprecated atoi function, use string refs...
parent
a949778e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/dial-plan/dial-plan-p.h
View file @
bf9fba42
...
...
@@ -28,13 +28,14 @@
LINPHONE_BEGIN_NAMESPACE
class
DialPlanPrivate
:
public
ClonableObjectPrivate
{
public:
private:
std
::
string
country
;
std
::
string
isoCountryCode
;
/* ISO 3166-1 alpha-2 code, ex: FR for France*/
std
::
string
countryCallingCode
;
/*country calling code*/
int
nationalNumberLength
=
0
;
/*maximum national number length*/
std
::
string
internationalCallPrefix
;
/*international call prefix, ex: 00 in europe*/
std
::
string
isoCountryCode
;
// ISO 3166-1 alpha-2 code, ex: FR for France.
std
::
string
countryCallingCode
;
// Country calling code.
int
nationalNumberLength
=
0
;
// Maximum national number length.
std
::
string
internationalCallPrefix
;
// International call prefix, ex: 00 in europe.
static
const
std
::
list
<
DialPlan
>
DialPlans
;
L_DECLARE_PUBLIC
(
DialPlan
);
};
...
...
src/dial-plan/dial-plan.cpp
View file @
bf9fba42
This diff is collapsed.
Click to expand it.
src/dial-plan/dial-plan.h
View file @
bf9fba42
...
...
@@ -32,30 +32,33 @@ class DialPlanPrivate;
class
LINPHONE_PUBLIC
DialPlan
:
public
ClonableObject
{
public:
DialPlan
(
const
std
::
string
&
country
=
""
,
const
std
::
string
&
isoCountryCode
=
""
,
const
std
::
string
&
ccc
=
""
,
int
nnl
=
0
,
const
std
::
string
&
icp
=
""
);
DialPlan
(
const
std
::
string
&
country
=
""
,
const
std
::
string
&
isoCountryCode
=
""
,
const
std
::
string
&
ccc
=
""
,
int
nnl
=
0
,
const
std
::
string
&
icp
=
""
);
DialPlan
(
const
DialPlan
&
src
);
~
DialPlan
();
DialPlan
&
operator
=
(
const
DialPlan
&
src
);
const
std
::
string
&
getCountry
()
const
;
const
std
::
string
&
getIsoCountryCode
()
const
;
const
std
::
string
&
getCountryCallingCode
()
const
;
int
getNationalNumberLength
()
const
;
const
std
::
string
&
getInternationalCallPrefix
()
const
;
bool
isGeneric
()
const
;
const
std
::
string
&
getCountry
()
const
;
const
std
::
string
&
getIsoCountryCode
()
const
;
const
std
::
string
&
getCountryCallingCode
()
const
;
int
getNationalNumberLength
()
const
;
const
std
::
string
&
getInternationalCallPrefix
()
const
;
bool
isGeneric
()
const
;
static
const
DialPlan
MostCommon
;
static
int
lookupCccFromE164
(
std
::
string
e164
);
static
int
lookupCccFromIso
(
std
::
string
iso
);
static
const
DialPlan
&
findByCccAsInt
(
int
ccc
);
static
const
DialPlan
&
findByCcc
(
const
std
::
string
&
ccc
);
static
const
std
::
list
<
DialPlan
>
&
getAllDialPlans
();
static
int
lookupCccFromE164
(
const
std
::
string
&
e164
);
static
int
lookupCccFromIso
(
const
std
::
string
&
iso
);
static
const
DialPlan
&
findByCccAsInt
(
int
ccc
);
static
const
DialPlan
&
findByCcc
(
const
std
::
string
&
ccc
);
static
const
std
::
list
<
DialPlan
>
&
getAllDialPlans
();
private:
static
std
::
list
<
DialPlan
>
const
DialPlans
;
L_DECLARE_PRIVATE
(
DialPlan
);
};
...
...
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