Lines Matching refs:theApp
41 #include "amule.h" // Needed for theApp
312 if(theApp->IsOnShutDown()) {
320 theApp->glob_prefs->ReloadSharedFolders();
328 for ( uint32 i = 0; i < theApp->downloadqueue->GetFileCount(); ++i ) {
329 CPartFile* file = theApp->downloadqueue->GetFileByIndex( i );
343 for (unsigned int i = 1;i < theApp->glob_prefs->GetCatCount(); ++i) {
344 sharedPaths.push_back(theApp->glob_prefs->GetCatPath(i));
347 const thePrefs::PathList& shared = theApp->glob_prefs->shareddir_list;
403 } else if (CheckDirectory(theApp->ConfigDir, directory)) {
513 if (!bOnlyAdd && theApp->IsConnectedED2K()) {
660 CServer* server = theApp->serverconnect->GetCurrentServer();
690 if (m_Files_map.empty() || !theApp->IsConnectedED2K() ) {
709 CServer* server = theApp->serverconnect->GetCurrentServer();
755 theApp->serverconnect->SendPacket(packet,true);
773 bool IsFirewalled = theApp->IsFirewalled();
775 if( Kademlia::CKademlia::IsConnected() && ( !IsFirewalled || ( IsFirewalled && theApp->clientlist->GetBuddyStatus() == Connected)) && GetCount() && Kademlia::CKademlia::GetPublish()) {
922 theApp->knownfiles->Save();
1052 const unsigned folderCount = theApp->glob_prefs->shareddir_list.size();
1054 if (path.IsSameDir(theApp->glob_prefs->shareddir_list[i])) {
1060 for (unsigned i = 0; i < theApp->glob_prefs->GetCatCount(); ++i) {
1061 if (path.IsSameDir(theApp->glob_prefs->GetCategory(i)->path)) {