OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
GDataContactsConverter.cpp File Reference
#include "GDataContactsConverter.hpp"
#include <sstream>
#include <helpers/Log.hpp>
#include <algorithm>
#include <PIMItem/Contact/Pict.hpp>
#include <helpers/StringHelper.hpp>
Include dependency graph for GDataContactsConverter.cpp:

Functions

std::string substringAfter (const std::string &str, const char c)
 
std::string parseRelationType (const std::string &relation)
 
std::string parsePhotoType (const std::string &mimeType)
 
void appendType (const std::string &rel, bool pref, std::ostringstream &oss)
 
std::string reformatVCard (const std::string &vCard)
 Trim vCard lines to 76 characters, wrap too long lines. More...
 
bool parseName (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parseNickname (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parseBday (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parseTitleOrg (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parseWebiste (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parseEmail (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parsePhone (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parseAddress (GDataContactsContact *contact, std::ostringstream &oss)
 
bool parsePhoto (guint8 *photoData, gsize photoDataLen, gchar *photoType, std::ostringstream &oss)
 
bool parseNote (GDataContactsContact *contact, std::ostringstream &oss)
 

Function Documentation

void appendType ( const std::string &  rel,
bool  pref,
std::ostringstream &  oss 
)
bool parseAddress ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parseBday ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parseEmail ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parseName ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parseNickname ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parseNote ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parsePhone ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parsePhoto ( guint8 *  photoData,
gsize  photoDataLen,
gchar *  photoType,
std::ostringstream &  oss 
)
std::string parsePhotoType ( const std::string &  mimeType)
std::string parseRelationType ( const std::string &  relation)
bool parseTitleOrg ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
bool parseWebiste ( GDataContactsContact *  contact,
std::ostringstream &  oss 
)
std::string reformatVCard ( const std::string &  vCard)

Trim vCard lines to 76 characters, wrap too long lines.

std::string substringAfter ( const std::string &  str,
const char  c 
)