email/imap4mtm/imapsession/inc/cimapsessionmanager.h
changeset 76 60a8a215b0ec
parent 0 72b543305e3a
equal deleted inserted replaced
73:ecf6a73a9186 76:60a8a215b0ec
    84 	IMPORT_C RConnection& GetConnectionL();
    84 	IMPORT_C RConnection& GetConnectionL();
    85 	// Gets the access point ID in use for the connection to the server
    85 	// Gets the access point ID in use for the connection to the server
    86 	IMPORT_C TInt GetAccessPointIdForConnection(TUint32& aAccessPointId) const;
    86 	IMPORT_C TInt GetAccessPointIdForConnection(TUint32& aAccessPointId) const;
    87 	// Close the current network connection
    87 	// Close the current network connection
    88  	IMPORT_C void CloseNetworkConnection();
    88  	IMPORT_C void CloseNetworkConnection();
    89 
    89  	// Set whether silent connection is required or not
       
    90  	inline void SetSilentConnection(TBool aIsSilent);
       
    91  	
    90 private:
    92 private:
    91 	// Construction routines
    93 	// Construction routines
    92 	CImapSessionManager(CImapSettings& aImapSettings, CImapMailStore& aImapMailStore);
    94 	CImapSessionManager(CImapSettings& aImapSettings, CImapMailStore& aImapMailStore);
    93 	void ConstructL();
    95 	void ConstructL();
    94 
    96 
   234 	TBool iCompletedSelf;
   236 	TBool iCompletedSelf;
   235 	
   237 	
   236 	// Flag to indicate if there was an error while  upgrading the socket to SSL/TLS.
   238 	// Flag to indicate if there was an error while  upgrading the socket to SSL/TLS.
   237 	TBool iErrorUpgradingSSLSocket;
   239 	TBool iErrorUpgradingSSLSocket;
   238 	
   240 	
       
   241 	//Silent Connection
       
   242 	TBool iIsSilent;
   239 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)
   243 #if (defined SYMBIAN_EMAIL_CAPABILITY_SUPPORT)
   240 	CImapAuthMechanismHelper::TImapAuthProfileFlag iCurrentAuthProfile;
   244 	CImapAuthMechanismHelper::TImapAuthProfileFlag iCurrentAuthProfile;
   241 #endif
   245 #endif
   242 	};
   246 	};
   243 
   247 
       
   248 /**
       
   249 Sets whether silent connection is required or not. If ETrue, Connection is established 
       
   250 without prompting the user.
       
   251 */
       
   252 inline void CImapSessionManager::SetSilentConnection(TBool aIsSilent)
       
   253     {
       
   254     iIsSilent = aIsSilent;
       
   255     }
       
   256 
   244 #endif // __CIMAPSESSIONMANAGER_H__
   257 #endif // __CIMAPSESSIONMANAGER_H__