emailuis/nmailui/inc/nmviewerviewnetmanager.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef NMVIEWERVIEWNETMANAGER_H_
       
    20 #define NMVIEWERVIEWNETMANAGER_H_
       
    21 
       
    22 #include <QNetworkAccessManager>
       
    23 
       
    24 class QNetworkRequest;
       
    25 class NmViewerView;
       
    26 class NmUiEngine;
       
    27 
       
    28 class NmViewerViewNetManager : public QNetworkAccessManager
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     NmViewerViewNetManager(NmUiEngine &uiEngine);
       
    33     ~NmViewerViewNetManager();
       
    34     void setView(NmViewerView *viewerView);
       
    35     QNetworkReply *createRequest(Operation op, const QNetworkRequest &request,
       
    36                                  QIODevice *outgoingData);
       
    37 
       
    38 private:
       
    39 	NmUiEngine &mUiEngine;
       
    40 	NmViewerView *mMessageView;    // Not owned
       
    41 
       
    42 };
       
    43 
       
    44 #endif /* NMVIEWERVIEWNETMANAGER_H_ */