emailuis/nmailui/inc/nmattachmentpicker.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     1 /*
       
     2 * Copyright (c) 2009 - 2010 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: Utility class for launching different file pickers
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NMATTACHMENTPICKER_H_
       
    19 #define NMATTACHMENTPICKER_H_
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 class XQAiwRequest;
       
    24 class HbListWidgetItem;
       
    25 
       
    26 /**
       
    27  * This class manages launching of different attachment pickers 
       
    28  * 
       
    29  */
       
    30 class  NmAttachmentPicker : public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     NmAttachmentPicker(QObject *parent = 0);
       
    36     ~NmAttachmentPicker();
       
    37         
       
    38 public slots:
       
    39     void fetchImage();
       
    40     void fetchAudio();    
       
    41     void fetchVideo();
       
    42     void fetchOther();  
       
    43     void fetchCameraStill();
       
    44     void fetchCameraVideo();
       
    45     void selectFetcher(HbListWidgetItem *listItem);
       
    46     void setTitle(const QString &title);
       
    47         
       
    48     
       
    49 signals:
       
    50     void attachmentsFetchOk(const QVariant &fileNames);
       
    51     void attachmentsFetchError(int errorCode, const QString &errorMessage);
       
    52     
       
    53 private:   
       
    54     void fetch(const QString &interface, const QString &operation, 
       
    55                 const QList<QVariant> *args = 0); 
       
    56     void fetchFromCamera(int mode);
       
    57     
       
    58 private:
       
    59     XQAiwRequest *mRequest;
       
    60     QString mTitle;
       
    61 };
       
    62 
       
    63 #endif // NMATTACHMENTPICKER_H_