File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,22 @@ void Profile::loadProfiles()
79
79
}
80
80
}
81
81
82
+ void Profile::update ( const ProfileDesc& profile )
83
+ {
84
+ std::string profileId ( profile.find ( avProfileIdentificator )->second );
85
+ size_t profileIndex = 0 ;
86
+ for ( ProfilesDesc::iterator it = _profiles.begin (); it != _profiles.end (); ++it )
87
+ {
88
+ if ( (*it).find ( avProfileIdentificator )->second == profileId )
89
+ {
90
+ _profiles.at ( profileIndex ) = profile;
91
+ return ;
92
+ }
93
+ ++profileIndex;
94
+ }
95
+ _profiles.push_back ( profile );
96
+ }
97
+
82
98
const Profile::ProfilesDesc& Profile::getProfiles ()
83
99
{
84
100
return _profiles;
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ class Profile
27
27
28
28
void loadProfiles ();
29
29
30
+ void update ( const ProfileDesc& profile );
31
+
30
32
const ProfilesDesc& getProfiles ();
31
33
32
34
ProfilesDesc getVideoProfiles ();
You can’t perform that action at this time.
0 commit comments