emailuis/nmailui/inc/nmattachmentpicker.h
changeset 54 997a02608b3a
parent 30 759dc5235cdb
child 56 15bc1d5d6267
equal deleted inserted replaced
53:bf7eb7911fc5 54:997a02608b3a
    29 class  NmAttachmentPicker : public QObject
    29 class  NmAttachmentPicker : public QObject
    30 {
    30 {
    31     Q_OBJECT
    31     Q_OBJECT
    32 
    32 
    33 public:
    33 public:
    34     NmAttachmentPicker(QObject* parent = 0);
    34     NmAttachmentPicker(QObject *parent = 0);
    35     ~NmAttachmentPicker();
    35     ~NmAttachmentPicker();
    36         
    36         
    37 public slots:
    37 public slots:
    38     void fetchImage();
    38     void fetchImage();
    39     void fetchAudio();    
    39     void fetchAudio();    
    41     void fetchOther();  
    41     void fetchOther();  
    42     void fetchCameraStill();
    42     void fetchCameraStill();
    43     void fetchCameraVideo();
    43     void fetchCameraVideo();
    44 
    44 
    45 signals:
    45 signals:
    46     void attachmentsFetchOk(const QVariant& fileNames);
    46     void attachmentsFetchOk(const QVariant &fileNames);
    47     void attachmentsFetchError(int errorCode, const QString& errorMessage);
    47     void attachmentsFetchError(int errorCode, const QString &errorMessage);
    48     
    48     
    49 private:   
    49 private:   
    50     void fetch(const QString& interface, const QString& operation, 
    50     void fetch(const QString &interface, const QString &operation, 
    51         const QList<QVariant>* args = 0); 
    51                 const QList<QVariant> *args = 0); 
    52     void fetchFromCamera(int mode);
    52     void fetchFromCamera(int mode);
    53     
    53     
    54 private:
    54 private:
    55     XQAiwRequest *mRequest;    
    55     XQAiwRequest *mRequest;    
    56 };
    56 };