SigningTS/client/signingcommoncase.cpp
changeset 18 5707b75503d5
equal deleted inserted replaced
17:cad8819de653 18:5707b75503d5
       
     1 
       
     2 #include "signingcommoncase.h"
       
     3 
       
     4 SigningCommonCase::SigningCommonCase(QNetworkAccessManager &aMgr, QObject *parent) :
       
     5     QObject(parent), mgr(aMgr)
       
     6 {
       
     7     testBaseURL = ::BaseURL + "?key=" + ::DefaultKey + "&api=" + ApiVersion + "&cmd=";
       
     8 }
       
     9 
       
    10 void SigningCommonCase::run()
       
    11 {
       
    12 
       
    13 }
       
    14 
       
    15 void SigningCommonCase::uploadSIS()
       
    16 {
       
    17     QString reqPOST = BaseURL + "uploadSIS";
       
    18     QNetworkRequest request(QUrl(reqPOST.toUtf8()));
       
    19     request.setHeader(QNetworkRequest::ContentTypeHeader,"x-epoc/x-sisx-app");
       
    20 
       
    21     // connect this request to a method for reply.
       
    22 
       
    23     // here is the sis file which we will post to the server.
       
    24 
       
    25     //mgr.post(request);
       
    26 }
       
    27 
       
    28 TestInterface::TRESULT_STATE  SigningCommonCase::getResult()
       
    29 {
       
    30    return TestInterface::INPROGESS;
       
    31 }