emailuis/nmailui/inc/nmattachmentpicker.h
author hgs
Fri, 23 Jul 2010 19:09:50 +0300
changeset 56 15bc1d5d6267
parent 47 f83bd4ae1fe3
child 62 a8c646b56683
permissions -rw-r--r--
201029

/*
* Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Utility class for launching different file pickers
*
*/

#ifndef NMATTACHMENTPICKER_H_
#define NMATTACHMENTPICKER_H_

#include <QObject>

class XQAiwRequest;
class HbListWidgetItem;

/**
 * This class manages launching of different attachment pickers 
 * 
 */
class  NmAttachmentPicker : public QObject
{
    Q_OBJECT

public:
    NmAttachmentPicker(QObject *parent = 0);
    ~NmAttachmentPicker();
        
public slots:
    void fetchImage();
    void fetchAudio();    
    void fetchVideo();
    void fetchOther();  
    void fetchCameraStill();
    void fetchCameraVideo();
    void selectFetcher(HbListWidgetItem *listItem);
        
    
signals:
    void attachmentsFetchOk(const QVariant &fileNames);
    void attachmentsFetchError(int errorCode, const QString &errorMessage);
    
private:   
    void fetch(const QString &interface, const QString &operation, 
                const QList<QVariant> *args = 0); 
    void fetchFromCamera(int mode);
    
private:
    XQAiwRequest *mRequest;    
};

#endif // NMATTACHMENTPICKER_H_