Advertisement
iamakulov

Untitled

Jun 15th, 2012
370
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void API_VK::writeCookies() {
  2.     QFile file(Consts::writePath() + "vk.cookie");
  3.     qDebug() << 1;
  4.     if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
  5.         return;
  6.     }
  7.  
  8.     qDebug() << 2;
  9.     QTextStream out(&file);
  10.     qDebug() << 3;
  11.     for (QList<QNetworkCookie>::const_iterator i = cookies.begin(); i != cookies.end(); ++i) {
  12.         qDebug() << 4.1;
  13.         out << (*i).name() << ' ' << (*i).value() << '\n';
  14.         qDebug() << 4.2;
  15.     }
  16.     qDebug() << 5;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement