Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Data Fields
Session Class Reference

#include <session.h>

Public Types

enum  State { NONAUTHENTICATED = 0x01 , AUTHENTICATED = 0x02 , SELECTED = 0x04 , LOGOUT = 0x00 }
 

Public Member Functions

int timeout () const
 
bool hasEnv (const std::string &key) const
 
std::string getEnv (const std::string &key)
 
void setEnv (const std::string &key, const std::string &value)
 
const int getState (void) const
 
void setState (int n)
 
bool parseCommandLine (int argc, char *argv[])
 
void assignCommandLineArgs (void)
 
int getWriteBytes (void) const
 
int getReadBytes (void) const
 
void addWriteBytes (int)
 
void addReadBytes (int)
 
int getBodies (void) const
 
int getStatements (void) const
 
void addBody (void)
 
void addStatement (void)
 
void setLogFacility (int facility)
 
int getLogFacility (void) const
 
const std::string & getLastError (void) const
 
const std::string & getResponseCode (void) const
 
const std::string & getIP (void) const
 
const std::string & getUserID () const
 
pid_t getPid (void)
 
const std::string & getHostname (void)
 
void setLastError (const std::string &error) const
 
void setResponseCode (const std::string &error) const
 
void clearResponseCode (void) const
 
void setIP (const std::string &ip)
 
void setUserID (const std::string &s)
 
DepotgetDepot (void) const
 
bool initialize (int argc, char *argv[])
 

Static Public Member Functions

static SessiongetInstance (void)
 

Data Fields

std::map< std::string, std::string > attrs
 
char ** unparsedArgs
 
struct {
   bool   help
 
   bool   version
 
   bool   ssl
 
command
 
bool mailboxchanges
 
CommandLineArgs args
 

Detailed Description

Definition at line 21 of file session.h.

Member Enumeration Documentation

◆ State

enum State
Enumerator
NONAUTHENTICATED 
AUTHENTICATED 
SELECTED 
LOGOUT 

Definition at line 35 of file session.h.

Member Function Documentation

◆ addBody()

void addBody ( void  )

Definition at line 88 of file session.cc.

Here is the caller graph for this function:

◆ addReadBytes()

void addReadBytes ( int  i)

Definition at line 100 of file session.cc.

◆ addStatement()

void addStatement ( void  )

Definition at line 94 of file session.cc.

Here is the caller graph for this function:

◆ addWriteBytes()

void addWriteBytes ( int  i)

Definition at line 106 of file session.cc.

◆ assignCommandLineArgs()

void assignCommandLineArgs ( void  )

Definition at line 160 of file session.cc.

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

◆ clearResponseCode()

void clearResponseCode ( void  ) const

Definition at line 203 of file session.cc.

◆ getBodies()

int getBodies ( void  ) const

Definition at line 112 of file session.cc.

Here is the caller graph for this function:

◆ getDepot()

Depot * getDepot ( void  ) const
inline

Definition at line 110 of file session.h.

Here is the caller graph for this function:

◆ getEnv()

string getEnv ( const std::string &  key)

Definition at line 230 of file session.cc.

Here is the caller graph for this function:

◆ getHostname()

const std::string & getHostname ( void  )

◆ getInstance()

Session & getInstance ( void  )
static

Definition at line 33 of file session.cc.

Here is the caller graph for this function:

◆ getIP()

const string & getIP ( void  ) const

Definition at line 64 of file session.cc.

Here is the caller graph for this function:

◆ getLastError()

const string & getLastError ( void  ) const

Definition at line 179 of file session.cc.

Here is the caller graph for this function:

◆ getLogFacility()

int getLogFacility ( void  ) const

Definition at line 82 of file session.cc.

◆ getPid()

pid_t getPid ( void  )

Definition at line 209 of file session.cc.

Here is the caller graph for this function:

◆ getReadBytes()

int getReadBytes ( void  ) const

Definition at line 130 of file session.cc.

Here is the caller graph for this function:

◆ getResponseCode()

const string & getResponseCode ( void  ) const

Definition at line 191 of file session.cc.

Here is the caller graph for this function:

◆ getState()

const int getState ( void  ) const

Definition at line 40 of file session.cc.

Here is the caller graph for this function:

◆ getStatements()

int getStatements ( void  ) const

Definition at line 118 of file session.cc.

Here is the caller graph for this function:

◆ getUserID()

const string & getUserID ( void  ) const

Definition at line 52 of file session.cc.

◆ getWriteBytes()

int getWriteBytes ( void  ) const

Definition at line 124 of file session.cc.

Here is the caller graph for this function:

◆ hasEnv()

bool hasEnv ( const std::string &  key) const

Definition at line 224 of file session.cc.

Here is the caller graph for this function:

◆ initialize()

bool initialize ( int  argc,
char *  argv[] 
)

Definition at line 31 of file session-initialize-bincimap-up.cc.

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

◆ parseCommandLine()

bool parseCommandLine ( int  argc,
char *  argv[] 
)

Definition at line 136 of file session.cc.

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

◆ setEnv()

void setEnv ( const std::string &  key,
const std::string &  value 
)

Definition at line 237 of file session.cc.

Here is the caller graph for this function:

◆ setIP()

void setIP ( const std::string &  ip)

Definition at line 70 of file session.cc.

Here is the caller graph for this function:

◆ setLastError()

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

Definition at line 185 of file session.cc.

Here is the caller graph for this function:

◆ setLogFacility()

void setLogFacility ( int  facility)

Definition at line 76 of file session.cc.

◆ setResponseCode()

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

Definition at line 197 of file session.cc.

Here is the caller graph for this function:

◆ setState()

void setState ( int  n)

Definition at line 46 of file session.cc.

Here is the caller graph for this function:

◆ setUserID()

void setUserID ( const std::string &  s)

Definition at line 58 of file session.cc.

◆ timeout()

int timeout ( ) const

Definition at line 218 of file session.cc.

Here is the caller graph for this function:

Field Documentation

◆ args

Definition at line 42 of file session.h.

◆ attrs

std::map<std::string, std::string> attrs

Definition at line 23 of file session.h.

◆ 

struct { ... } command

◆ help

bool help

Definition at line 28 of file session.h.

◆ mailboxchanges

bool mailboxchanges

Definition at line 33 of file session.h.

◆ ssl

bool ssl

Definition at line 30 of file session.h.

◆ unparsedArgs

char** unparsedArgs

Definition at line 25 of file session.h.

◆ version

bool version

Definition at line 29 of file session.h.


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