5#ifndef MOLYBDEN_PROFILE_HPP
6#define MOLYBDEN_PROFILE_HPP
40 static std::shared_ptr<Profile>
create(std::shared_ptr<App>
app,
41 const std::string&
name);
56 const std::string&
name);
61 virtual std::shared_ptr<App>
app() = 0;
66 virtual std::string
name() = 0;
71 virtual std::string
path() = 0;
87 virtual std::vector<std::shared_ptr<Browser>>
browsers() = 0;
92 virtual std::vector<std::shared_ptr<Download>>
downloads() = 0;
97 virtual std::shared_ptr<ProfilePrefs>
prefs() = 0;
102 virtual std::shared_ptr<Network>
network() = 0;
107 virtual std::shared_ptr<Proxy>
proxy() = 0;
117 virtual std::shared_ptr<Cookies>
cookies() = 0;
The app profile that holds user data such as navigation history, proxy settings, spell checker config...
Definition profile.hpp:32
virtual std::shared_ptr< UserProfiles > userProfiles()=0
Returns the user profile store.
virtual bool isIncognito()=0
Checks if this profile is an incognito profile.
virtual bool isDefault()=0
Checks if this profile is the default profile.
virtual std::vector< std::shared_ptr< Download > > downloads()=0
Returns all downloads in this profile, both active and completed.
virtual std::shared_ptr< Cookies > cookies()=0
Returns the cookie store that allows managing cookies.
virtual std::shared_ptr< Proxy > proxy()=0
Returns a service that allows working with proxy configurations.
virtual std::shared_ptr< Permissions > permissions()=0
Returns the permissions manager.
virtual std::shared_ptr< Network > network()=0
Returns a service that allows working with network.
virtual std::shared_ptr< CreditCards > creditCards()=0
Returns the credit card store.
virtual std::string name()=0
Returns the name of this profile.
virtual std::shared_ptr< HttpAuthCache > httpAuthCache()=0
Returns the HTTP authentication cache.
virtual std::shared_ptr< SpellChecker > spellChecker()=0
Returns a service that allows working with spell checking functionality.
virtual std::vector< std::shared_ptr< Browser > > browsers()=0
Returns all alive browsers in this profile including child popup browsers or an empty set if this pro...
virtual std::shared_ptr< HttpCache > httpCache()=0
Returns the HTTP cache.
virtual std::shared_ptr< ProfilePrefs > prefs()=0
Returns the preferences for this profile.
static std::shared_ptr< Profile > create(std::shared_ptr< App > app, const std::string &name)
Creates a new profile with the given name.
virtual std::shared_ptr< Passwords > passwords()=0
Returns the password store.
static std::shared_ptr< Profile > createIncognito(std::shared_ptr< App > app, const std::string &name)
Creates a new incognito profile with the given name.
virtual std::string path()=0
Returns an absolute path to the folder where this profile stores its data.
virtual std::shared_ptr< App > app()=0
Returns the application instance for this profile.