• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/

Lines Matching refs:theApp

45 #include "amule.h"		// Needed for theApp
155 theApp->downloadqueue->CopyFileList(downloads, true);
165 theApp->sharedfiles->CopyFileList(shares);
239 wxASSERT(theApp->ECServerHandler);
240 theApp->ECServerHandler->AddSocket(this);
247 wxASSERT(theApp->ECServerHandler);
248 theApp->ECServerHandler->RemoveSocket(this);
279 theApp->ECServerHandler->m_ec_notifier->Remove_EC_Client(this);
524 theApp->ECServerHandler->m_ec_notifier->Add_EC_Client(this);
588 theApp->serverlist->GetUserFileStatus( totaluser, totalfile );
603 response->AddTag(CECTag(EC_TAG_STATS_BUDDY_STATUS, theApp->clientlist->GetBuddyStatus()));
606 CUpDownClient * Buddy = theApp->clientlist->GetBuddy();
634 for (uint32 i = 0; i < theApp->sharedfiles->GetFileCount(); ++i) {
635 CKnownFile *cur_file = (CKnownFile *)theApp->sharedfiles->GetFileByIndex(i);
681 const CClientList::IDMap& clientList = theApp->clientlist->GetClientList();
697 std::vector<const CServer*> serverlist = theApp->serverlist->CopySnapshot();
708 for (CFriendList::const_iterator it = theApp->friendlist->begin(); it != theApp->friendlist->end(); it++) {
729 const CClientRefList& clients = theApp->uploadqueue->GetUploadingList();
764 for (unsigned int i = 0; i < theApp->downloadqueue->GetFileCount(); i++) {
765 CPartFile *cur_file = theApp->downloadqueue->GetFileByIndex(i);
796 CPartFile *pfile = theApp->downloadqueue->GetFileByID( hash );
837 theApp->downloadqueue->StartNextFile(pfile);
872 if ( theApp->AddServer(toadd, true) ) {
889 srv = theApp->serverlist->GetServerByIPTCP(srv_tag->GetIPv4Data().IP(), srv_tag->GetIPv4Data().m_port);
900 theApp->serverconnect->Disconnect();
905 theApp->serverlist->RemoveServer(srv);
916 theApp->serverconnect->ConnectToServer(srv);
919 theApp->serverconnect->ConnectToAnyServer();
943 CUpDownClient * client = theApp->clientlist->FindClientByECID(subtag->GetInt());
945 theApp->friendlist->AddFriend(CCLIENTREF(client, wxT("Get_EC_Response_Friend theApp->friendlist->AddFriend")));
954 theApp->friendlist->AddFriend(hashtag->GetMD4Data(), iptag->GetInt(), porttag->GetInt(), nametag->GetStringData());
961 CFriend * Friend = theApp->friendlist->FindFriend(subtag->GetInt());
963 theApp->friendlist->RemoveFriend(Friend);
970 CFriend * Friend = theApp->friendlist->FindFriend(subtag->GetInt());
972 theApp->friendlist->SetFriendSlot(Friend, tag->GetInt() != 0);
984 CFriend * Friend = theApp->friendlist->FindFriend(subtag->GetInt());
986 theApp->friendlist->RequestSharedFileList(Friend);
990 CUpDownClient * client = theApp->clientlist->FindClientByECID(subtag->GetInt());
1016 const CSearchResultList& list = theApp->searchlist->GetSearchResults(0xffffffff);
1032 const CSearchResultList& list = theApp->searchlist->GetSearchResults(0xffffffff);
1058 theApp->searchlist->AddFileToDownloadByHash(hash, category);
1066 theApp->searchlist->StopSearch();
1075 theApp->searchlist->RemoveResults(0xffffffff);
1098 wxString error = theApp->searchlist->StartNewSearch(&search_id, core_search_type, params);
1126 CKnownFile* cur_file = theApp->sharedfiles->GetFileByID(hash);
1298 unsigned int numPoints = theApp->m_statistics->GetHistoryForWeb(nMaxPoints, (double)nScale, &dTimestamp, &graphData);
1340 if (!theApp->IsOnShutDown()) {
1347 theApp->ShutDown(evt);
1350 theApp->ExitMainLoop();
1367 if ( theApp->downloadqueue->AddLink(link, category) ) {
1426 theApp->sharedfiles->Reload();
1436 CKnownFile* file = theApp->downloadqueue->GetFileByID(fileHash);
1438 file = theApp->knownfiles->FindKnownFileByID(fileHash);
1451 if (theApp->sharedfiles->RenameFile(file, CPath(newName))) {
1467 theApp->downloadqueue->ClearCompleted(toClear);
1472 theApp->sharedfiles->Reload();
1474 CUpDownClient * client = theApp->clientlist->FindClientByECID(idClient);
1476 CPartFile * file = theApp->downloadqueue->GetFileByID(idFile);
1485 CKnownFile * file = theApp->sharedfiles->GetFileByID(hash);
1513 std::vector<const CServer*> servers = theApp->serverlist->CopySnapshot();
1530 theApp->serverlist->UpdateServerMetFromURL(url);
1536 CServer * server = theApp->serverlist->GetServerByECID(ecid);
1540 theApp->serverlist->SetStaticServer(server, staticTag->GetInt() > 0);
1544 theApp->serverlist->SetServerPrio(server, prioTag->GetInt());
1596 theApp->searchlist->GetSearchProgress()));
1610 theApp->glob_prefs->Save();
1612 theApp->clientlist->FilterQueues();
1615 theApp->serverlist->FilterServers();
1617 if (!thePrefs::GetNetworkED2K() && theApp->IsConnectedED2K()) {
1618 theApp->DisconnectED2K();
1620 if (!thePrefs::GetNetworkKademlia() && theApp->IsConnectedKad()) {
1621 theApp->StopKad();
1633 response->AddTag(CECTag(EC_TAG_CATEGORY, theApp->glob_prefs->GetCatCount() - 1));
1686 response->AddTag(CECTag(EC_TAG_STRING, theApp->GetLog(false)));
1690 response->AddTag(CECTag(EC_TAG_STRING, theApp->GetDebugLog(false)));
1693 theApp->GetLog(true);
1697 theApp->GetDebugLog(true);
1702 wxString tmp = theApp->GetLog(false);
1712 response->AddTag(CECTag(EC_TAG_STRING, theApp->GetServerLog(false)));
1715 theApp->GetServerLog(true);
1725 theApp->m_statistics->UpdateStatsTree();
1747 theApp->ShowConnectionState();
1755 theApp->StopKad();
1756 theApp->ShowConnectionState();
1766 theApp->UpdateNotesDat(url);
1772 theApp->BootstrapKad(request->GetTagByNameSafe(EC_TAG_BOOTSTRAP_IP)->GetInt(),
1774 theApp->ShowConnectionState();
1789 if (theApp->IsConnectedED2K()) {
1792 theApp->serverconnect->ConnectToAnyServer();
1800 if (theApp->IsConnectedKad()) {
1803 theApp->StartKad();
1808 theApp->ShowConnectionState();
1815 if (theApp->IsConnected()) {
1817 if (theApp->IsConnectedED2K()) {
1818 theApp->serverconnect->Disconnect();
1821 if (theApp->IsConnectedKad()) {
1822 theApp->StopKad();
1825 theApp->ShowConnectionState();
1856 if ( theApp->IsConnectedED2K() ) {
1857 return theApp->GetED2KID();
1858 } else if ( theApp->serverconnect->IsConnecting() ) {
1867 if ( theApp->IsConnectedKad() ) {
1881 (m_server != theApp->serverconnect->GetCurrentServer()) ) {
1885 m_server = theApp->serverconnect->GetCurrentServer();
1899 for (unsigned int i = 0; i < theApp->downloadqueue->GetFileCount(); i++) {
1900 CPartFile *cur_file = theApp->downloadqueue->GetFileByIndex(i);
1970 for (unsigned int i = 0; i < theApp->sharedfiles->GetFileCount(); i++) {
1971 CKnownFile *cur_file = (CKnownFile *)theApp->sharedfiles->GetFileByIndex(i);