IEBgpClient/inc/IEBgpClient.h
changeset 3 93fff7023be8
equal deleted inserted replaced
2:e1e28b0273b0 3:93fff7023be8
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors: Juha Kauppinen, Mika Hokkanen
       
    13 * 
       
    14 * Description: Photo Browser
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __IEBGPCLIENT_H__
       
    19 #define __IEBGPCLIENT_H__
       
    20 
       
    21 // Include files
       
    22 #include <e32base.h>
       
    23 #include <IEImageProcessing.h>
       
    24 #include <IEBgpsInfo.h>
       
    25 
       
    26 /**
       
    27  * EIGBPS client 
       
    28  * 
       
    29  */
       
    30 class RIEBgpClient : public RSessionBase
       
    31 {
       
    32 public:
       
    33 	/**
       
    34 	Connects to the server, creates a session.
       
    35 	
       
    36 	@return - it returns KErrNone if connection is successful, else error code
       
    37 	*/	
       
    38 	TInt Connect();
       
    39 	
       
    40 	/**
       
    41 	Disconnects from the server.
       
    42 	*/
       
    43 	void Disconnect();
       
    44 	
       
    45 	/**
       
    46 	Gets the session ID.
       
    47 	
       
    48 	@return - it returns the session id with the server.
       
    49 	*/
       
    50 	TInt SessionId();
       
    51 	
       
    52 	/**
       
    53 	Gets the version of the server
       
    54 	
       
    55 	@return - it returns the version of the server
       
    56 	*/
       
    57 	TVersion Version() const;
       
    58 	
       
    59 	/**
       
    60 	Closes the session with the server. Destroy kernel side object also.
       
    61 	*/
       
    62 	void Close();
       
    63 	
       
    64 	/**
       
    65      * Overloaded function generates Thumbnails. 
       
    66      *  
       
    67      * @Param aMGDir - Jpeg File with absolute path.
       
    68      * @aImageArrary aTNDir - Thumbnail file name with abolutepath
       
    69      */ 
       
    70 	void GenerateThumbnails(TRequestStatus &aStatus, const TDesC& aMGDir,  const TDesC& aTNDir);
       
    71 	
       
    72 	/**
       
    73      * Overloaded function generates Thumbnails. 
       
    74      * 
       
    75      * @Param aMGDir - Jpeg File with absolute path.
       
    76      * @param aImageArrary aTNDir - Thumbnail file name with abolutepath
       
    77      * @Param aSize - Thumbnail size.
       
    78      */ 
       
    79 	void GenerateThumbnails(TRequestStatus &aStatus, const TDesC& aMGDir, const TDesC& aTNDir, const TSize &aSize);
       
    80 	void GenerateThumbnails(TRequestStatus &aStatus, const TDesC& aMGDir, const TDesC& aTNDir, const TSize &aSize, CFbsBitmap* aSrcBitmap);
       
    81 	void CancelTNGeneration();
       
    82 	
       
    83 private: 
       
    84     /** Server Thread **/
       
    85 	RThread iServerThread;	
       
    86 	
       
    87 	/** Jpeg file name **/
       
    88 	TFileName iJpegFileName;
       
    89 	
       
    90 	/** Gallery file name **/
       
    91 	TFileName iGalleryFileName;
       
    92 	/** Thumbmail size**/
       
    93 	TSize iSize;
       
    94 	
       
    95 	TFileName iTempFileName;
       
    96 };
       
    97 
       
    98 #endif // __IEBGPCLIENT_H__