example/FlickrAuthApp/src/requestSP.cpp
changeset 26 83d6a149c755
parent 17 106a4bfcb866
equal deleted inserted replaced
25:a180113055cb 26:83d6a149c755
    35 
    35 
    36 static const QString kAPIVersion = "1.0";
    36 static const QString kAPIVersion = "1.0";
    37 static const QString kAPIFormat = "XML";
    37 static const QString kAPIFormat = "XML";
    38 static const QString kStringBoundary = "3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f";
    38 static const QString kStringBoundary = "3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f";
    39 
    39 
    40 static const double kTimeoutInterval = 180.0;
       
    41 
       
    42 
       
    43 ///////////////////////////////////////////////////////////////////////////////////////////////////
    40 ///////////////////////////////////////////////////////////////////////////////////////////////////
    44 
    41 
    45 static bool caseInsensitiveLessThan(const QString &s1, const QString &s2)
    42 static bool caseInsensitiveLessThan(const QString &s1, const QString &s2)
    46 {
    43 {
    47     return s1.toLower() < s2.toLower();
    44     return s1.toLower() < s2.toLower();
   179              ||   iMethod.compare("facebook.auth.createToken", Qt::CaseInsensitive) == 0 );
   176              ||   iMethod.compare("facebook.auth.createToken", Qt::CaseInsensitive) == 0 );
   180 }
   177 }
   181 
   178 
   182 QString FBRequest::urlForMethod (const QString& aMethod) const {
   179 QString FBRequest::urlForMethod (const QString& aMethod) const {
   183 
   180 
       
   181 	Q_UNUSED(aMethod)
   184 	return iSession->apiURL();
   182 	return iSession->apiURL();
   185 }
   183 }
   186 
   184 
   187 QString FBRequest::generateGetURL() const
   185 QString FBRequest::generateGetURL() const
   188 {
   186 {