camerauis/cameraapp/generic/inc/camoneclickuploadutility.h
changeset 0 1ddebce53859
child 12 8c55c525d5d7
equal deleted inserted replaced
-1:000000000000 0:1ddebce53859
       
     1 /*
       
     2 * Copyright (c) 2008 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:
       
    13 *
       
    14 * Description:  Helper class for implementing one-click upload support
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CAMONECLICKUPLOADUTILITY_H
       
    20 #define CAMONECLICKUPLOADUTILITY_H
       
    21 
       
    22 
       
    23 #include <e32std.h>
       
    24 
       
    25 class CAiwServiceHandler;
       
    26 
       
    27 
       
    28 /**
       
    29  *  Helper class for implementing one-click upload support
       
    30  *
       
    31  *  @since S60 v5.0
       
    32  */
       
    33 class CCamOneClickUploadUtility : public CBase
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      */
       
    39     static CCamOneClickUploadUtility* NewL();
       
    40 
       
    41     /**
       
    42     * Destructor.
       
    43     */
       
    44     virtual ~CCamOneClickUploadUtility();
       
    45 
       
    46 public:
       
    47 
       
    48     /**
       
    49     * Check if one-click upload is supported.
       
    50     * @since S60 v5.0
       
    51     * @return A boolean value indicating if one-click upload support is present.
       
    52     */
       
    53     TBool OneClickUploadSupported() const;
       
    54 
       
    55     /**
       
    56     * Upload a file.
       
    57     * @since S60 v5.0
       
    58     * @param aFilename Full path to the file to be uploaded.
       
    59     */
       
    60     void UploadL( const TDesC& aFilename );
       
    61 
       
    62     /**
       
    63     * Upload multiple files.
       
    64     * @since S60 v5.0
       
    65     * @param aFilenames Full paths to the files to be uploaded.
       
    66     */
       
    67     void UploadL( const MDesC16Array& aFilenames );
       
    68 
       
    69     /**
       
    70     * Get the tooltip text for one-click upload button.
       
    71     * @since S60 v5.0
       
    72     * @return Tooltip text
       
    73     */
       
    74     const TDesC& ButtonTooltipL();
       
    75 
       
    76 private:
       
    77     void ConstructL();
       
    78     void CheckVersionL();
       
    79     void InitializeAiwL();
       
    80     CCamOneClickUploadUtility();
       
    81 
       
    82 private: // Data
       
    83 
       
    84     TBool iUploadSupported;
       
    85 
       
    86     // Own
       
    87     CAiwServiceHandler* iAiwServiceHandler;
       
    88 
       
    89     // Own
       
    90     HBufC* iTooltip;
       
    91     };
       
    92 
       
    93 
       
    94 #endif // CAMONECLICKUPLOADUTILITY_H
       
    95