Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
Data Structures | Public Member Functions | Protected Attributes
Depot Class Referenceabstract

#include <depot.h>

Data Structures

class  iterator
 

Public Member Functions

virtual iterator begin (const std::string &) const
 
virtual const iteratorend (void) const
 
void setDelimiter (char)
 
const char getDelimiter (void) const
 
virtual void assign (Mailbox *)
 
bool setDefaultType (const std::string &n)
 
MailboxgetDefault (void) const
 
virtual Mailboxget (const std::string &path) const
 
virtual bool setSelected (Mailbox *)
 
virtual MailboxgetSelected (void) const
 
void resetSelected (void)
 
bool getStatus (const std::string &s_in, Status &dest) const
 
const std::string & getName (void) const
 
virtual const std::string & getPersonalNamespace (void) const
 
virtual const std::string & getOthersNamespace (void) const
 
virtual const std::string & getSharedNamespace (void) const
 
virtual std::string mailboxToFilename (const std::string &m) const =0
 
virtual std::string filenameToMailbox (const std::string &m) const =0
 
virtual bool createMailbox (const std::string &m) const
 
virtual bool deleteMailbox (const std::string &m) const
 
virtual bool renameMailbox (const std::string &m, const std::string &n) const
 
const std::string & getLastError (void) const
 
void setLastError (const std::string &error) const
 
virtual std::vector< std::string > getSubscriptions (void) const
 
virtual void subscribeTo (const std::string mailbox)
 
virtual bool unsubscribeTo (const std::string mailbox)
 
virtual void loadSubscribes (void)
 
virtual bool saveSubscribes (void) const
 
 Depot (void)
 
 Depot (const std::string &name)
 
virtual ~Depot (void)
 

Protected Attributes

std::string lastError
 
std::string name
 
char delimiter
 
std::map< std::string, Statusmailboxstatuses
 

Detailed Description

Definition at line 36 of file depot.h.

Constructor & Destructor Documentation

◆ Depot() [1/2]

Depot ( void  )

Definition at line 60 of file depot.cc.

◆ Depot() [2/2]

Depot ( const std::string &  name)

◆ ~Depot()

~Depot ( void  )
virtual

Definition at line 80 of file depot.cc.

Member Function Documentation

◆ assign()

void assign ( Mailbox m)
virtual

Definition at line 97 of file depot.cc.

◆ begin()

Depot::iterator begin ( const std::string &  ) const
virtual

Definition at line 537 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createMailbox()

bool createMailbox ( const std::string &  m) const
virtual

Definition at line 201 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteMailbox()

bool deleteMailbox ( const std::string &  m) const
virtual

Definition at line 225 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ end()

const Depot::iterator & end ( void  ) const
virtual

Definition at line 552 of file depot.cc.

Here is the caller graph for this function:

◆ filenameToMailbox()

virtual std::string filenameToMailbox ( const std::string &  m) const
pure virtual

Implemented in MaildirPPDepot, and IMAPdirDepot.

Here is the caller graph for this function:

◆ get()

Mailbox * get ( const std::string &  path) const
virtual

Definition at line 107 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDefault()

Mailbox * getDefault ( void  ) const

Definition at line 195 of file depot.cc.

Here is the caller graph for this function:

◆ getDelimiter()

const char getDelimiter ( void  ) const

Definition at line 163 of file depot.cc.

Here is the caller graph for this function:

◆ getLastError()

const string & getLastError ( void  ) const

Definition at line 85 of file depot.cc.

Here is the caller graph for this function:

◆ getName()

const string & getName ( void  ) const

Definition at line 133 of file depot.cc.

◆ getOthersNamespace()

const string & getOthersNamespace ( void  ) const
virtual

Definition at line 145 of file depot.cc.

◆ getPersonalNamespace()

const string & getPersonalNamespace ( void  ) const
virtual

Reimplemented in MaildirPPDepot.

Definition at line 139 of file depot.cc.

Here is the caller graph for this function:

◆ getSelected()

Mailbox * getSelected ( void  ) const
virtual

Definition at line 183 of file depot.cc.

Here is the caller graph for this function:

◆ getSharedNamespace()

const string & getSharedNamespace ( void  ) const
virtual

Definition at line 151 of file depot.cc.

◆ getStatus()

bool getStatus ( const std::string &  s_in,
Status dest 
) const

Definition at line 295 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSubscriptions()

vector< string > getSubscriptions ( void  ) const
virtual

Definition at line 322 of file depot.cc.

Here is the caller graph for this function:

◆ loadSubscribes()

void loadSubscribes ( void  )
virtual

Definition at line 354 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mailboxToFilename()

virtual std::string mailboxToFilename ( const std::string &  m) const
pure virtual

Implemented in MaildirPPDepot, and IMAPdirDepot.

Here is the caller graph for this function:

◆ renameMailbox()

bool renameMailbox ( const std::string &  m,
const std::string &  n 
) const
virtual

Definition at line 245 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetSelected()

void resetSelected ( void  )

Definition at line 189 of file depot.cc.

Here is the caller graph for this function:

◆ saveSubscribes()

bool saveSubscribes ( void  ) const
virtual

Definition at line 396 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDefaultType()

bool setDefaultType ( const std::string &  n)

Definition at line 169 of file depot.cc.

Here is the call graph for this function:

◆ setDelimiter()

void setDelimiter ( char  c)

Definition at line 157 of file depot.cc.

◆ setLastError()

void setLastError ( const std::string &  error) const

Definition at line 91 of file depot.cc.

Here is the caller graph for this function:

◆ setSelected()

bool setSelected ( Mailbox m)
virtual

Definition at line 119 of file depot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subscribeTo()

void subscribeTo ( const std::string  mailbox)
virtual

Definition at line 328 of file depot.cc.

Here is the caller graph for this function:

◆ unsubscribeTo()

bool unsubscribeTo ( const std::string  mailbox)
virtual

Definition at line 340 of file depot.cc.

Here is the caller graph for this function:

Field Documentation

◆ delimiter

char delimiter
protected

Definition at line 76 of file depot.h.

◆ lastError

std::string lastError
mutableprotected

Definition at line 74 of file depot.h.

◆ mailboxstatuses

std::map<std::string, Status> mailboxstatuses
mutableprotected

Definition at line 77 of file depot.h.

◆ name

std::string name
protected

Definition at line 75 of file depot.h.


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