本文整理汇总了C++中vCardProperty类的典型用法代码示例。如果您正苦于以下问题:C++ vCardProperty类的具体用法?C++ vCardProperty怎么用?C++ vCardProperty使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了vCardProperty类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addProperty
void vCard::addProperty(const vCardProperty& property)
{
int count = m_properties.count();
for (int i = 0; i < count; i++)
{
vCardProperty current = m_properties.at(i);
if (current.name() == property.name() && current.params() == property.params())
{
m_properties[i] = property;
return;
}
}
m_properties.append(property);
}
示例2: while
bool vCard::removeProperty( int iEditorIndex )
{
vCardPropertyList::iterator it = m_properties.begin();
while ( it != m_properties.end() )
{
const vCardProperty current = *it;
if (current.getEditorIndex() == iEditorIndex)
{
it = m_properties.erase(it);
updateReversion();
return true;
}
else
++it;
}
return false;
}
示例3: if
bool vCard::addProperty(const vCardProperty& prop)
{
for (vCardPropertyList::iterator it = m_properties.begin(); it != m_properties.end(); ++it)
{
vCardProperty current = *it;
if (current == prop)
{
return false;
}
else if (current.name() == prop.name() && current.params() == prop.params())
{
if( vCardProperty::isUniqueProperty( current.name() ) )
{
*it = prop;
return true;
}
}
}
m_properties.push_back(prop);
return true;
}
示例4: property
vCardProperty vCard::property(const Cactus::GString& name, const vCardParamList& params, bool strict) const
{
for (vCardPropertyList::const_iterator it = m_properties.begin(); it != m_properties.end(); ++it)
{
const vCardProperty current = *it;
if (current.name() == name)
{
vCardParamList current_params = current.params();
if (strict)
{
if (params != current_params)
continue;
}
else
{
M_Foreach_Const (vCardParam, param, vCardParamList, params)
if (std::find(current_params.begin(), current_params.end(), param) == current_params.end())
continue;
}
return current;
}
}
示例5: return
bool vCardProperty::operator== (const vCardProperty& prop) const
{
return ((m_name == prop.name()) && (m_values == prop.values()));
}
示例6: setProperty
void TypedProperty::setProperty(vCardProperty& prop) {
if (p) delete p;
p = prop.clone();
}
示例7: setPhoto
void PersonalDetail::setPhoto(vCardProperty& p) {
if (photo) delete photo;
photo = p.clone();
}