Molybden API
Loading...
Searching...
No Matches
molybden::Profile Class Referenceabstract

The app profile that holds user data such as navigation history, proxy settings, spell checker configurations, cookies, etc. More...

#include <profile.hpp>

Public Member Functions

virtual std::shared_ptr< Appapp ()=0
 Returns the application instance for this profile.
 
virtual std::string name ()=0
 Returns the name of this profile.
 
virtual std::string path ()=0
 Returns an absolute path to the folder where this profile stores its data.
 
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< Browser > > browsers ()=0
 Returns all alive browsers in this profile including child popup browsers or an empty set if this profile does not have any alive browsers.
 
virtual std::vector< std::shared_ptr< Download > > downloads ()=0
 Returns all downloads in this profile, both active and completed.
 
virtual std::shared_ptr< ProfilePrefsprefs ()=0
 Returns the preferences for this profile.
 
virtual std::shared_ptr< Networknetwork ()=0
 Returns a service that allows working with network.
 
virtual std::shared_ptr< Proxyproxy ()=0
 Returns a service that allows working with proxy configurations.
 
virtual std::shared_ptr< CreditCardscreditCards ()=0
 Returns the credit card store.
 
virtual std::shared_ptr< Cookiescookies ()=0
 Returns the cookie store that allows managing cookies.
 
virtual std::shared_ptr< Passwordspasswords ()=0
 Returns the password store.
 
virtual std::shared_ptr< Permissionspermissions ()=0
 Returns the permissions manager.
 
virtual std::shared_ptr< UserProfilesuserProfiles ()=0
 Returns the user profile store.
 
virtual std::shared_ptr< HttpCachehttpCache ()=0
 Returns the HTTP cache.
 
virtual std::shared_ptr< HttpAuthCachehttpAuthCache ()=0
 Returns the HTTP authentication cache.
 
virtual std::shared_ptr< SpellCheckerspellChecker ()=0
 Returns a service that allows working with spell checking functionality.
 

Static Public Member Functions

static std::shared_ptr< Profilecreate (std::shared_ptr< App > app, const std::string &name)
 Creates a new profile with the given name.
 
static std::shared_ptr< ProfilecreateIncognito (std::shared_ptr< App > app, const std::string &name)
 Creates a new incognito profile with the given name.
 

Detailed Description

The app profile that holds user data such as navigation history, proxy settings, spell checker configurations, cookies, etc.

Member Function Documentation

◆ create()

static std::shared_ptr< Profile > molybden::Profile::create ( std::shared_ptr< App app,
const std::string &  name 
)
static

Creates a new profile with the given name.

Parameters
appthe app instance of the new profile.
namethe profile name. Cannot be empty or blank.

◆ createIncognito()

static std::shared_ptr< Profile > molybden::Profile::createIncognito ( std::shared_ptr< App app,
const std::string &  name 
)
static

Creates a new incognito profile with the given name.

Incognito profile allows browsing the web without leaving a trace on the computer. It doesn't save browsing history, cookies, or form data, providing a temporary session where the online activities are not stored locally. It doesn't make the activity completely anonymous or prevent websites and internet service providers from tracking it.

Parameters
appthe app instance of the new profile.
namethe profile name. Cannot be empty or blank.

The documentation for this class was generated from the following file: