Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void API_VK::writeCookies() {
- QFile file(Consts::writePath() + "vk.cookie");
- qDebug() << 1;
- if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
- return;
- }
- qDebug() << 2;
- QTextStream out(&file);
- qDebug() << 3;
- for (QList<QNetworkCookie>::const_iterator i = cookies.begin(); i != cookies.end(); ++i) {
- qDebug() << 4.1;
- out << (*i).name() << ' ' << (*i).value() << '\n';
- qDebug() << 4.2;
- }
- qDebug() << 5;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement