X-Git-Url: http://git.maemo.org/git/?p=tpsession;a=blobdiff_plain;f=tpsession-0.1%2Ftests%2Fshowaccounts%2Ftestprog.cpp;fp=tpsession-0.1%2Ftests%2Fshowaccounts%2Ftestprog.cpp;h=eba7189e706459106309af509bc8e167b2444b4e;hp=0000000000000000000000000000000000000000;hb=9a48f77860a2bb996f3ca318fe3c19096110f28a;hpb=f116f1ac60b47e9186e4eef5f68597980518a2eb diff --git a/tpsession-0.1/tests/showaccounts/testprog.cpp b/tpsession-0.1/tests/showaccounts/testprog.cpp new file mode 100644 index 0000000..eba7189 --- /dev/null +++ b/tpsession-0.1/tests/showaccounts/testprog.cpp @@ -0,0 +1,17 @@ +#include "testprog.h" +#include + +TestProg::TestProg() +{ + qDebug() << __PRETTY_FUNCTION__ ; + tps =new TpSession("ring",true); + foreach (TpSessionAccount *tpacc, tps->accounts) { + qDebug() << "ConnectionManager" << tpacc->acc->cmName() << "protocol " << tpacc->acc->protocol() << "uniqueIdentifier" << tpacc->acc->uniqueIdentifier() + << "Connection=" << (tpacc->acc->haveConnection()? ( tpacc->acc->connection()->isReady() ? "Ready":"notReady"):"noConnection"); + qDebug() << "normalizedName" << tpacc->acc->normalizedName() << "nickname " << tpacc->acc->nickname() << "DisplayName" << tpacc->acc->displayName(); + qDebug() << "icon" << tpacc->acc->icon() << "validAccount " << tpacc->acc->isValidAccount() << "Enabled" << tpacc->acc->isEnabled(); + qDebug() << "parameters" << tpacc->acc->parameters(); + } + +} +