Main Page | Class Hierarchy | Class List | Class Members

ExistsResponse Class Reference

Inheritance diagram for ExistsResponse:

Response List of all members.

Detailed Description

ExistsResponse is a class that represents an IMAP4 EXISTS response. An EXISTS response reports the number of messages in the currently selected mailbox. The server sends an EXISTS response in response to a SELECT or EXAMINE command. The server may also send an EXISTS response when the number of messages changes, such as when new mail arrives.


Public Member Functions

 ExistsResponse ()
 Default constructor.
 ExistsResponse (const ExistsResponse &other)
 Copy constructor.
virtual ~ExistsResponse ()
 Destructor.
ExistsResponseoperator= (const ExistsResponse &other)
 Assignment operator.
uint32_t Number () const
 Returns the number of messages in currently selected mailbox.
void Number (uint32_t n)
 Sets the number of messages.


Constructor & Destructor Documentation

ExistsResponse  ) 
 

Default constructor

ExistsResponse const ExistsResponse other  ) 
 

Copy constructor

Parameters:
other other object to copy

~ExistsResponse  )  [virtual]
 

Destructor


Member Function Documentation

void Number uint32_t  n  ) 
 

Sets the number of messages.

Only the library itself should call this function.

Parameters:
n value to set

uint32_t Number  )  const
 

Returns the number of messages in the currently selected mailbox

Returns:
number of messages

ExistsResponse & operator= const ExistsResponse other  ) 
 

Assignment operator.

Parameters:
other other object to copy
Returns:
*this

Copyright © 2001-2005 Hunny Software, Inc. All rights reserved.