Lines Matching refs:pBook
160 EBook *pBook = NULL; in openBook() local
162 pBook = e_book_new (pSource, NULL); in openBook()
164 if (pBook && !e_book_open (pBook, TRUE, NULL)) in openBook()
166 g_object_unref (G_OBJECT (pBook)); in openBook()
167 pBook = NULL; in openBook()
170 return pBook; in openBook()
173 static bool isLDAP( EBook *pBook ) in isLDAP() argument
175 return pBook && !strncmp( "ldap://", e_book_get_uri( pBook ), 6 ); in isLDAP()
178 static bool isLocal( EBook *pBook ) in isLocal() argument
180 return pBook && !strncmp( "file://", e_book_get_uri( pBook ), 6 ); in isLocal()
183 static bool isAuthRequired( EBook *pBook ) in isAuthRequired() argument
185 return e_source_get_property( e_book_get_source( pBook ), in isAuthRequired()
189 static rtl::OString getUserName( EBook *pBook ) in getUserName() argument
192 if( isLDAP( pBook ) ) in getUserName()
193 aName = e_source_get_property( e_book_get_source( pBook ), "binddn" ); in getUserName()
195 aName = e_source_get_property( e_book_get_source( pBook ), "user" ); in getUserName()
218 executeQuery (EBook* pBook, EBookQuery* pQuery, GList **ppList, in executeQuery() argument
221 ESource *pSource = e_book_get_source( pBook ); in executeQuery()
227 if( isAuthRequired( pBook ) ) in executeQuery()
229 rtl::OString aUser( getUserName( pBook ) ); in executeQuery()
231 bAuthSuccess = e_book_authenticate_user( pBook, aUser, rPassword, pAuth, pError ); in executeQuery()
235 bSuccess = e_book_get_contacts( pBook, pQuery, ppList, pError ); in executeQuery()
515 EBook *pBook = openBook( ::rtl::OUStringToOString( _rData.sTable, RTL_TEXTENCODING_UTF8 ) ); in construct() local
516 if ( !pBook ) in construct()
525 if ( !isLocal( pBook ) ) in construct()
549 executeQuery( pBook, _rData.getQuery(), &m_pContacts, aPassword, NULL ); in construct()