phonebookui/pbkcommonui/inc/cntimageeditorview.h
changeset 59 a642906a277a
parent 46 efe85016a067
child 65 ae724a111993
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    17 
    17 
    18 #ifndef CNTIMAGEEDITORVIEW_H
    18 #ifndef CNTIMAGEEDITORVIEW_H
    19 #define CNTIMAGEEDITORVIEW_H
    19 #define CNTIMAGEEDITORVIEW_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 #include <hbdocumentloader.h>
    22 #include <cntdocumentloader.h>
    23 #include <xqappmgr.h>
    23 #include <xqappmgr.h>
    24 
    24 
    25 #include <cntabstractview.h>
    25 #include <cntabstractview.h>
    26 
    26 
    27 class HbLabel;
    27 class CntImageLabel;
    28 class HbListView;
    28 class HbListView;
    29 class XQAiwRequest;
    29 class XQAiwRequest;
    30 class ThumbnailManager;
    30 class ThumbnailManager;
    31 class HbAction;
    31 class HbAction;
    32 class QStandardItemModel;
    32 class QStandardItemModel;
    33 class QModelIndex;
    33 class QModelIndex;
       
    34 class CntSaveManager;
    34 
    35 
    35 QTM_BEGIN_NAMESPACE
    36 QTM_BEGIN_NAMESPACE
    36 class QContact;
    37 class QContact;
    37 class QContactAvatar;
    38 class QContactAvatar;
    38 QTM_END_NAMESPACE
    39 QTM_END_NAMESPACE
    73     void handleImageChange(const QVariant &value);
    74     void handleImageChange(const QVariant &value);
    74     void thumbnailReady( const QPixmap& pixmap, void *data, int id, int error );
    75     void thumbnailReady( const QPixmap& pixmap, void *data, int id, int error );
    75     void setOrientation(Qt::Orientation orientation);
    76     void setOrientation(Qt::Orientation orientation);
    76     void listViewActivated(const QModelIndex &index);
    77     void listViewActivated(const QModelIndex &index);
    77     void handleError(int errorCode, const QString& errorMessage);
    78     void handleError(int errorCode, const QString& errorMessage);
       
    79     void saveContact();
    78 
    80 
    79 
    81 
    80 #ifdef PBK_UNIT_TEST
    82 #ifdef PBK_UNIT_TEST
    81 public:
    83 public:
    82 #else
    84 #else
    83 private:
    85 private:
    84 #endif
    86 #endif
    85     QContact                *mContact; // own
    87     QContact                *mContact; // own
    86     QContactAvatar          *mAvatar; // own
    88     QContactAvatar          *mAvatar; // own
    87     HbLabel                 *mImageLabel; // owned by layout
    89     CntImageLabel           *mImageLabel; // owned by layout
    88     XQAiwRequest            *mRequest; // own
    90     XQAiwRequest            *mRequest; // own
    89     XQApplicationManager     mAppManager;
    91     XQApplicationManager     mAppManager;
    90     ThumbnailManager        *mThumbnailManager; // own
    92     ThumbnailManager        *mThumbnailManager; // own
    91     HbView                  *mView; // own
    93     HbView                  *mView; // own
    92     HbAction                *mSoftkey; // owned by view
    94     HbAction                *mSoftkey; // owned by view
    93     HbAction                *mRemoveImage; // own
    95     HbAction                *mRemoveImage; // own
    94     CntAbstractViewManager  *mViewManager;
    96     CntAbstractViewManager  *mViewManager;
    95     HbDocumentLoader         mDocumentLoader;
    97     CntDocumentLoader        mDocumentLoader;
    96     HbListView              *mListView; // owned by layout
    98     HbListView              *mListView; // owned by layout
    97     QStandardItemModel      *mModel; // own
    99     QStandardItemModel      *mModel; // own
       
   100     CntSaveManager          *mSaveManager; // own
    98     
   101     
    99     CntViewParameters       mArgs;
   102     CntViewParameters       mArgs;
   100 };
   103 };
   101 
   104 
   102 #endif // CNTIMAGEEDITORVIEW_H
   105 #endif // CNTIMAGEEDITORVIEW_H