libzypp 17.37.17
credentialfilereader.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MEDIA_AUTH_CREDENTIALFILEREADER_H
13#define ZYPP_MEDIA_AUTH_CREDENTIALFILEREADER_H
14
16#include <zypp-core/Url.h>
17#include <zypp-core/Pathname.h>
18
19#include <zypp-media/auth/AuthData>
20
22namespace zypp
23{
25 namespace media
26 {
31 {
32 public:
36 using ProcessCredentials = function<bool (AuthData_Ptr &)>;
37
38 CredentialFileReader( const Pathname & crfile_r, const ProcessCredentials & callback_r );
40 private:
42 };
43
44
45 } // namespace media
47} // namespace zypp
49
50#endif /* ZYPP_MEDIA_AUTH_CREDENTIALFILEREADER_H */
function< bool(AuthData_Ptr &)> ProcessCredentials
Callback invoked for each entry found in the file.
CredentialFileReader(const Pathname &crfile_r, const ProcessCredentials &callback_r)
shared_ptr< AuthData > AuthData_Ptr
Definition authdata.h:81
Easy-to use interface to the ZYPP dependency resolver.