~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/picasawebexport/picasawebtalker.cpp

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-08-13 18:23:16 UTC
  • mfrom: (1.2.41)
  • Revision ID: package-import@ubuntu.com-20120813182316-mket5nnbld3zjaii
Tags: 4:2.8.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
        return ;
120
120
    }
121
121
 
122
 
    m_loginName = username_edit;
123
 
    m_username  = username_edit;
 
122
    m_loginName   = username_edit;
 
123
    m_username    = username_edit;
 
124
    m_userEmailId = username_edit;
124
125
    
125
126
    QString accountType = "GOOGLE";
126
127
 
151
152
    emit signalBusy( true );
152
153
}
153
154
 
154
 
void PicasawebTalker::authenticate(const QString& token, const QString& username, const QString& password)
 
155
void PicasawebTalker::authenticate(const QString& token, const QString& username, const QString& password, const QString& userEmailId)
155
156
{
156
157
    if (!token.isNull() || token.length() > 0)
157
158
    {
158
159
        kDebug() << " Checktoken being called" << token ;
159
160
        m_loginName = username;
160
161
        m_username  = username;
 
162
        m_userEmailId = userEmailId;
161
163
        m_password  = password; //this would be needed if the checktoken failed
162
164
                                //we would need to reauthenticate using auth
163
165
        m_token = token;
532
534
    return m_username;
533
535
}
534
536
 
 
537
QString PicasawebTalker::getUserEmailId() const
 
538
{
 
539
    return m_userEmailId;
 
540
}
 
541
 
535
542
QString PicasawebTalker::getLoginName() const
536
543
{
537
544
    return m_loginName;