author | sandman <sandman> | 2002-10-02 21:53:00 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-02 21:53:00 (UTC) |
commit | 4c8b8e96d841bb12637b5b022dbfeca6dae3d189 (patch) (unidiff) | |
tree | ce8eb50e5cb9bfd6a5ed3c43e7f22cde25956e84 | |
parent | 2d0c6327dd40ab6847ce055c40ca59893bc8b9b2 (diff) | |
download | opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.zip opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.tar.gz opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.tar.bz2 |
Hack for suspend action is no longer needed
-rw-r--r-- | library/global.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/library/global.cpp b/library/global.cpp index 2e4d03f..9b908bf 100644 --- a/library/global.cpp +++ b/library/global.cpp | |||
@@ -491,326 +491,322 @@ QGuardedPtr<QWidget> *Global::running=0; | |||
491 | */ | 491 | */ |
492 | 492 | ||
493 | /*! | 493 | /*! |
494 | \internal | 494 | \internal |
495 | */ | 495 | */ |
496 | void Global::setBuiltinCommands( Command* list ) | 496 | void Global::setBuiltinCommands( Command* list ) |
497 | { | 497 | { |
498 | if ( running ) | 498 | if ( running ) |
499 | delete [] running; | 499 | delete [] running; |
500 | 500 | ||
501 | builtin = list; | 501 | builtin = list; |
502 | int count = 0; | 502 | int count = 0; |
503 | if (!builtin) | 503 | if (!builtin) |
504 | return; | 504 | return; |
505 | while ( builtin[count].file ) | 505 | while ( builtin[count].file ) |
506 | count++; | 506 | count++; |
507 | 507 | ||
508 | running = new QGuardedPtr<QWidget> [ count ]; | 508 | running = new QGuardedPtr<QWidget> [ count ]; |
509 | } | 509 | } |
510 | 510 | ||
511 | /*! | 511 | /*! |
512 | \internal | 512 | \internal |
513 | */ | 513 | */ |
514 | void Global::setDocument( QWidget* receiver, const QString& document ) | 514 | void Global::setDocument( QWidget* receiver, const QString& document ) |
515 | { | 515 | { |
516 | Emitter emitter(receiver,document); | 516 | Emitter emitter(receiver,document); |
517 | } | 517 | } |
518 | 518 | ||
519 | /*! | 519 | /*! |
520 | \internal | 520 | \internal |
521 | */ | 521 | */ |
522 | bool Global::terminateBuiltin( const QString& n ) | 522 | bool Global::terminateBuiltin( const QString& n ) |
523 | { | 523 | { |
524 | if (!builtin) | 524 | if (!builtin) |
525 | return FALSE; | 525 | return FALSE; |
526 | for (int i = 0; builtin[i].file; i++) { | 526 | for (int i = 0; builtin[i].file; i++) { |
527 | if ( builtin[i].file == n ) { | 527 | if ( builtin[i].file == n ) { |
528 | delete running[i]; | 528 | delete running[i]; |
529 | return TRUE; | 529 | return TRUE; |
530 | } | 530 | } |
531 | } | 531 | } |
532 | return FALSE; | 532 | return FALSE; |
533 | } | 533 | } |
534 | 534 | ||
535 | /*! | 535 | /*! |
536 | \internal | 536 | \internal |
537 | */ | 537 | */ |
538 | void Global::terminate( const AppLnk* app ) | 538 | void Global::terminate( const AppLnk* app ) |
539 | { | 539 | { |
540 | //if ( terminateBuiltin(app->exec()) ) return; // maybe? haven't tried this | 540 | //if ( terminateBuiltin(app->exec()) ) return; // maybe? haven't tried this |
541 | 541 | ||
542 | #ifndef QT_NO_COP | 542 | #ifndef QT_NO_COP |
543 | QCString channel = "QPE/Application/" + app->exec().utf8(); | 543 | QCString channel = "QPE/Application/" + app->exec().utf8(); |
544 | if ( QCopChannel::isRegistered(channel) ) { | 544 | if ( QCopChannel::isRegistered(channel) ) { |
545 | QCopEnvelope e(channel, "quit()"); | 545 | QCopEnvelope e(channel, "quit()"); |
546 | } | 546 | } |
547 | #endif | 547 | #endif |
548 | } | 548 | } |
549 | 549 | ||
550 | /*! | 550 | /*! |
551 | Low-level function to run command \a c. | 551 | Low-level function to run command \a c. |
552 | 552 | ||
553 | \warning Do not use this function. Use execute instead. | 553 | \warning Do not use this function. Use execute instead. |
554 | 554 | ||
555 | \sa execute() | 555 | \sa execute() |
556 | */ | 556 | */ |
557 | void Global::invoke(const QString &c) | 557 | void Global::invoke(const QString &c) |
558 | { | 558 | { |
559 | // Convert the command line in to a list of arguments | 559 | // Convert the command line in to a list of arguments |
560 | QStringList list = QStringList::split(QRegExp(" *"),c); | 560 | QStringList list = QStringList::split(QRegExp(" *"),c); |
561 | 561 | ||
562 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 562 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
563 | QString ap=list[0]; | 563 | QString ap=list[0]; |
564 | // see if the application is already running | 564 | // see if the application is already running |
565 | // XXX should lock file /tmp/qcop-msg-ap | 565 | // XXX should lock file /tmp/qcop-msg-ap |
566 | if ( QCopChannel::isRegistered( ("QPE/Application/" + ap).latin1() ) ) { | 566 | if ( QCopChannel::isRegistered( ("QPE/Application/" + ap).latin1() ) ) { |
567 | // If the channel is already register, the app is already running, so show it. | 567 | // If the channel is already register, the app is already running, so show it. |
568 | { QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } | 568 | { QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } |
569 | 569 | ||
570 | QCopEnvelope e("QPE/System", "notBusy(QString)" ); | 570 | QCopEnvelope e("QPE/System", "notBusy(QString)" ); |
571 | e << ap; | 571 | e << ap; |
572 | return; | 572 | return; |
573 | } | 573 | } |
574 | // XXX should unlock file /tmp/qcop-msg-ap | 574 | // XXX should unlock file /tmp/qcop-msg-ap |
575 | //see if it is being started | 575 | //see if it is being started |
576 | if ( StartingAppList::isStarting( ap ) ) { | 576 | if ( StartingAppList::isStarting( ap ) ) { |
577 | QCopEnvelope e("QPE/System", "notBusy(QString)" ); | 577 | QCopEnvelope e("QPE/System", "notBusy(QString)" ); |
578 | e << ap; | 578 | e << ap; |
579 | return; | 579 | return; |
580 | } | 580 | } |
581 | 581 | ||
582 | #endif | 582 | #endif |
583 | 583 | ||
584 | #ifdef QT_NO_QWS_MULTIPROCESS | 584 | #ifdef QT_NO_QWS_MULTIPROCESS |
585 | QMessageBox::warning( 0, "Error", "Could not find the application " + c, "Ok", 0, 0, 0, 1 ); | 585 | QMessageBox::warning( 0, "Error", "Could not find the application " + c, "Ok", 0, 0, 0, 1 ); |
586 | #else | 586 | #else |
587 | 587 | ||
588 | QStrList slist; | 588 | QStrList slist; |
589 | unsigned int j; | 589 | unsigned int j; |
590 | for ( j = 0; j < list.count(); j++ ) | 590 | for ( j = 0; j < list.count(); j++ ) |
591 | slist.append( list[j].utf8() ); | 591 | slist.append( list[j].utf8() ); |
592 | 592 | ||
593 | const char **args = new (const char *)[slist.count() + 1]; | 593 | const char **args = new (const char *)[slist.count() + 1]; |
594 | for ( j = 0; j < slist.count(); j++ ) | 594 | for ( j = 0; j < slist.count(); j++ ) |
595 | args[j] = slist.at(j); | 595 | args[j] = slist.at(j); |
596 | args[j] = NULL; | 596 | args[j] = NULL; |
597 | 597 | ||
598 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 598 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
599 | // an attempt to show a wait... | 599 | // an attempt to show a wait... |
600 | // more logic should be used, but this will be fine for the moment... | 600 | // more logic should be used, but this will be fine for the moment... |
601 | QCopEnvelope ( "QPE/System", "busy()" ); | 601 | QCopEnvelope ( "QPE/System", "busy()" ); |
602 | #endif | 602 | #endif |
603 | 603 | ||
604 | #ifdef HAVE_QUICKEXEC | 604 | #ifdef HAVE_QUICKEXEC |
605 | QString libexe = qpeDir()+"/binlib/lib"+args[0] + ".so"; | 605 | QString libexe = qpeDir()+"/binlib/lib"+args[0] + ".so"; |
606 | qDebug("libfile = %s", libexe.latin1() ); | 606 | qDebug("libfile = %s", libexe.latin1() ); |
607 | if ( QFile::exists( libexe ) ) { | 607 | if ( QFile::exists( libexe ) ) { |
608 | qDebug("calling quickexec %s", libexe.latin1() ); | 608 | qDebug("calling quickexec %s", libexe.latin1() ); |
609 | quickexecv( libexe.utf8().data(), (const char **)args ); | 609 | quickexecv( libexe.utf8().data(), (const char **)args ); |
610 | } else | 610 | } else |
611 | #endif | 611 | #endif |
612 | { | 612 | { |
613 | if ( !::vfork() ) { | 613 | if ( !::vfork() ) { |
614 | for ( int fd = 3; fd < 100; fd++ ) | 614 | for ( int fd = 3; fd < 100; fd++ ) |
615 | ::close( fd ); | 615 | ::close( fd ); |
616 | ::setpgid( ::getpid(), ::getppid() ); | 616 | ::setpgid( ::getpid(), ::getppid() ); |
617 | // Try bindir first, so that foo/bar works too | 617 | // Try bindir first, so that foo/bar works too |
618 | ::execv( qpeDir()+"/bin/"+args[0], (char * const *)args ); | 618 | ::execv( qpeDir()+"/bin/"+args[0], (char * const *)args ); |
619 | ::execvp( args[0], (char * const *)args ); | 619 | ::execvp( args[0], (char * const *)args ); |
620 | _exit( -1 ); | 620 | _exit( -1 ); |
621 | } | 621 | } |
622 | } | 622 | } |
623 | StartingAppList::add( list[0] ); | 623 | StartingAppList::add( list[0] ); |
624 | #endif //QT_NO_QWS_MULTIPROCESS | 624 | #endif //QT_NO_QWS_MULTIPROCESS |
625 | } | 625 | } |
626 | 626 | ||
627 | 627 | ||
628 | /*! | 628 | /*! |
629 | Executes the application identfied by \a c, passing \a | 629 | Executes the application identfied by \a c, passing \a |
630 | document if it isn't null. | 630 | document if it isn't null. |
631 | 631 | ||
632 | Note that a better approach might be to send a QCop message to the | 632 | Note that a better approach might be to send a QCop message to the |
633 | application's QPE/Application/\e{appname} channel. | 633 | application's QPE/Application/\e{appname} channel. |
634 | */ | 634 | */ |
635 | void Global::execute( const QString &c, const QString& document ) | 635 | void Global::execute( const QString &c, const QString& document ) |
636 | { | 636 | { |
637 | if ( qApp->type() != QApplication::GuiServer ) { | 637 | if ( qApp->type() != QApplication::GuiServer ) { |
638 | // ask the server to do the work | 638 | // ask the server to do the work |
639 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 639 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
640 | if ( document.isNull() ) { | 640 | if ( document.isNull() ) { |
641 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | 641 | QCopEnvelope e( "QPE/System", "execute(QString)" ); |
642 | e << c; | 642 | e << c; |
643 | } else { | 643 | } else { |
644 | QCopEnvelope e( "QPE/System", "execute(QString,QString)" ); | 644 | QCopEnvelope e( "QPE/System", "execute(QString,QString)" ); |
645 | e << c << document; | 645 | e << c << document; |
646 | } | 646 | } |
647 | #endif | 647 | #endif |
648 | return; | 648 | return; |
649 | } | 649 | } |
650 | 650 | ||
651 | // Attempt to execute the app using a builtin class for the app first | 651 | // Attempt to execute the app using a builtin class for the app first |
652 | // else try and find it in the bin directory | 652 | // else try and find it in the bin directory |
653 | if (builtin) { | 653 | if (builtin) { |
654 | for (int i = 0; builtin[i].file; i++) { | 654 | for (int i = 0; builtin[i].file; i++) { |
655 | if ( builtin[i].file == c ) { | 655 | if ( builtin[i].file == c ) { |
656 | if ( running[i] ) { | 656 | if ( running[i] ) { |
657 | if ( !document.isNull() && builtin[i].documentary ) | 657 | if ( !document.isNull() && builtin[i].documentary ) |
658 | setDocument(running[i], document); | 658 | setDocument(running[i], document); |
659 | running[i]->raise(); | 659 | running[i]->raise(); |
660 | running[i]->show(); | 660 | running[i]->show(); |
661 | running[i]->setActiveWindow(); | 661 | running[i]->setActiveWindow(); |
662 | } else { | 662 | } else { |
663 | running[i] = builtin[i].func( builtin[i].maximized ); | 663 | running[i] = builtin[i].func( builtin[i].maximized ); |
664 | } | 664 | } |
665 | #ifndef QT_NO_COP | 665 | #ifndef QT_NO_COP |
666 | QCopEnvelope e("QPE/System", "notBusy(QString)" ); | 666 | QCopEnvelope e("QPE/System", "notBusy(QString)" ); |
667 | e << c; // that was quick ;-) | 667 | e << c; // that was quick ;-) |
668 | #endif | 668 | #endif |
669 | return; | 669 | return; |
670 | } | 670 | } |
671 | } | 671 | } |
672 | } | 672 | } |
673 | 673 | ||
674 | //Global::invoke(c, document); | 674 | //Global::invoke(c, document); |
675 | 675 | ||
676 | // Convert the command line in to a list of arguments | 676 | // Convert the command line in to a list of arguments |
677 | QStringList list = QStringList::split(QRegExp(" *"),c); | 677 | QStringList list = QStringList::split(QRegExp(" *"),c); |
678 | 678 | ||
679 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) | 679 | #if defined(Q_WS_QWS) && !defined(QT_NO_COP) |
680 | QString ap=list[0]; | 680 | QString ap=list[0]; |
681 | 681 | ||
682 | qDebug("executing %s", ap.latin1() ); | 682 | qDebug("executing %s", ap.latin1() ); |
683 | if ( ap == "suspend" ) { | ||
684 | QWSServer::sendKeyEvent( 0xffff, Qt::Key_F34, FALSE, TRUE, FALSE ); | ||
685 | return; | ||
686 | } | ||
687 | 683 | ||
688 | /* if need be, sending a qcop message will result in an invoke, see | 684 | /* if need be, sending a qcop message will result in an invoke, see |
689 | preceeding function */ | 685 | preceeding function */ |
690 | invoke( ap ); | 686 | invoke( ap ); |
691 | //{ QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } | 687 | //{ QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } |
692 | if ( !document.isEmpty() ) { | 688 | if ( !document.isEmpty() ) { |
693 | QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "setDocument(QString)" ); | 689 | QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "setDocument(QString)" ); |
694 | env << document; | 690 | env << document; |
695 | } | 691 | } |
696 | #endif | 692 | #endif |
697 | } | 693 | } |
698 | 694 | ||
699 | /*! | 695 | /*! |
700 | Returns the string \a s with the characters '\', '"', and '$' quoted | 696 | Returns the string \a s with the characters '\', '"', and '$' quoted |
701 | by a preceeding '\'. | 697 | by a preceeding '\'. |
702 | 698 | ||
703 | \sa stringQuote() | 699 | \sa stringQuote() |
704 | */ | 700 | */ |
705 | QString Global::shellQuote(const QString& s) | 701 | QString Global::shellQuote(const QString& s) |
706 | { | 702 | { |
707 | QString r="\""; | 703 | QString r="\""; |
708 | for (int i=0; i<(int)s.length(); i++) { | 704 | for (int i=0; i<(int)s.length(); i++) { |
709 | char c = s[i].latin1(); | 705 | char c = s[i].latin1(); |
710 | switch (c) { | 706 | switch (c) { |
711 | case '\\': case '"': case '$': | 707 | case '\\': case '"': case '$': |
712 | r+="\\"; | 708 | r+="\\"; |
713 | } | 709 | } |
714 | r += s[i]; | 710 | r += s[i]; |
715 | } | 711 | } |
716 | r += "\""; | 712 | r += "\""; |
717 | return r; | 713 | return r; |
718 | } | 714 | } |
719 | 715 | ||
720 | /*! | 716 | /*! |
721 | Returns the string \a s with the characters '\' and '"' quoted by a | 717 | Returns the string \a s with the characters '\' and '"' quoted by a |
722 | preceeding '\'. | 718 | preceeding '\'. |
723 | 719 | ||
724 | \sa shellQuote() | 720 | \sa shellQuote() |
725 | */ | 721 | */ |
726 | QString Global::stringQuote(const QString& s) | 722 | QString Global::stringQuote(const QString& s) |
727 | { | 723 | { |
728 | QString r="\""; | 724 | QString r="\""; |
729 | for (int i=0; i<(int)s.length(); i++) { | 725 | for (int i=0; i<(int)s.length(); i++) { |
730 | char c = s[i].latin1(); | 726 | char c = s[i].latin1(); |
731 | switch (c) { | 727 | switch (c) { |
732 | case '\\': case '"': | 728 | case '\\': case '"': |
733 | r+="\\"; | 729 | r+="\\"; |
734 | } | 730 | } |
735 | r += s[i]; | 731 | r += s[i]; |
736 | } | 732 | } |
737 | r += "\""; | 733 | r += "\""; |
738 | return r; | 734 | return r; |
739 | } | 735 | } |
740 | 736 | ||
741 | /*! | 737 | /*! |
742 | Finds all documents on the system's document directories which | 738 | Finds all documents on the system's document directories which |
743 | match the filter \a mimefilter, and appends the resulting DocLnk | 739 | match the filter \a mimefilter, and appends the resulting DocLnk |
744 | objects to \a folder. | 740 | objects to \a folder. |
745 | */ | 741 | */ |
746 | void Global::findDocuments(DocLnkSet* folder, const QString &mimefilter) | 742 | void Global::findDocuments(DocLnkSet* folder, const QString &mimefilter) |
747 | { | 743 | { |
748 | QString homedocs = QString(getenv("HOME")) + "/Documents"; | 744 | QString homedocs = QString(getenv("HOME")) + "/Documents"; |
749 | DocLnkSet d(homedocs,mimefilter); | 745 | DocLnkSet d(homedocs,mimefilter); |
750 | folder->appendFrom(d); | 746 | folder->appendFrom(d); |
751 | /** let's do intellegint way of searching these files | 747 | /** let's do intellegint way of searching these files |
752 | * a) the user don't want to check mediums global | 748 | * a) the user don't want to check mediums global |
753 | * b) the user wants to check but use the global options for it | 749 | * b) the user wants to check but use the global options for it |
754 | * c) the user wants to check it but not this medium | 750 | * c) the user wants to check it but not this medium |
755 | * d) the user wants to check and this medium as well | 751 | * d) the user wants to check and this medium as well |
756 | * | 752 | * |
757 | * In all cases we need to apply a different mimefilter to | 753 | * In all cases we need to apply a different mimefilter to |
758 | * the medium. | 754 | * the medium. |
759 | * a) mimefilter.isEmpty() we need to apply the responding filter | 755 | * a) mimefilter.isEmpty() we need to apply the responding filter |
760 | * either the global or the one on the medium | 756 | * either the global or the one on the medium |
761 | * | 757 | * |
762 | * b) mimefilter is set to an application we need to find out if the | 758 | * b) mimefilter is set to an application we need to find out if the |
763 | * mimetypes are included in the mime mask of the medium | 759 | * mimetypes are included in the mime mask of the medium |
764 | */ | 760 | */ |
765 | StorageInfo storage; | 761 | StorageInfo storage; |
766 | const QList<FileSystem> &fs = storage.fileSystems(); | 762 | const QList<FileSystem> &fs = storage.fileSystems(); |
767 | QListIterator<FileSystem> it ( fs ); | 763 | QListIterator<FileSystem> it ( fs ); |
768 | for ( ; it.current(); ++it ) { | 764 | for ( ; it.current(); ++it ) { |
769 | if ( (*it)->isRemovable() ) { // let's find out if we should search on it | 765 | if ( (*it)->isRemovable() ) { // let's find out if we should search on it |
770 | // this is a candidate look at the cf and see if we should search on it | 766 | // this is a candidate look at the cf and see if we should search on it |
771 | QString path = (*it)->path(); | 767 | QString path = (*it)->path(); |
772 | if( !checkStorage((*it)->path() + "/.opiestorage.cf" ) ) | 768 | if( !checkStorage((*it)->path() + "/.opiestorage.cf" ) ) |
773 | continue; | 769 | continue; |
774 | DocLnkSet ide( path, mimefilter ); | 770 | DocLnkSet ide( path, mimefilter ); |
775 | folder->appendFrom(ide); | 771 | folder->appendFrom(ide); |
776 | } else if ( (*it)->disk() == "/dev/mtdblock6" || (*it)->disk() == "tmpfs" ) { | 772 | } else if ( (*it)->disk() == "/dev/mtdblock6" || (*it)->disk() == "tmpfs" ) { |
777 | QString path = (*it)->path() + "/Documents"; | 773 | QString path = (*it)->path() + "/Documents"; |
778 | DocLnkSet ide( path, mimefilter ); | 774 | DocLnkSet ide( path, mimefilter ); |
779 | folder->appendFrom(ide); | 775 | folder->appendFrom(ide); |
780 | } | 776 | } |
781 | } | 777 | } |
782 | } | 778 | } |
783 | 779 | ||
784 | QStringList Global::languageList() | 780 | QStringList Global::languageList() |
785 | { | 781 | { |
786 | QString lang = getenv("LANG"); | 782 | QString lang = getenv("LANG"); |
787 | QStringList langs; | 783 | QStringList langs; |
788 | langs.append(lang); | 784 | langs.append(lang); |
789 | int i = lang.find("."); | 785 | int i = lang.find("."); |
790 | if ( i > 0 ) | 786 | if ( i > 0 ) |
791 | lang = lang.left( i ); | 787 | lang = lang.left( i ); |
792 | i = lang.find( "_" ); | 788 | i = lang.find( "_" ); |
793 | if ( i > 0 ) | 789 | if ( i > 0 ) |
794 | langs.append(lang.left(i)); | 790 | langs.append(lang.left(i)); |
795 | return langs; | 791 | return langs; |
796 | } | 792 | } |
797 | 793 | ||
798 | QStringList Global::helpPath() | 794 | QStringList Global::helpPath() |
799 | { | 795 | { |
800 | QStringList path; | 796 | QStringList path; |
801 | QStringList langs = Global::languageList(); | 797 | QStringList langs = Global::languageList(); |
802 | for (QStringList::ConstIterator it = langs.fromLast(); it!=langs.end(); --it) { | 798 | for (QStringList::ConstIterator it = langs.fromLast(); it!=langs.end(); --it) { |
803 | QString lang = *it; | 799 | QString lang = *it; |
804 | if ( !lang.isEmpty() ) | 800 | if ( !lang.isEmpty() ) |
805 | path += QPEApplication::qpeDir() + "/help/" + lang + "/html"; | 801 | path += QPEApplication::qpeDir() + "/help/" + lang + "/html"; |
806 | } | 802 | } |
807 | path += QPEApplication::qpeDir() + "/pics"; | 803 | path += QPEApplication::qpeDir() + "/pics"; |
808 | path += QPEApplication::qpeDir() + "/help/html"; | 804 | path += QPEApplication::qpeDir() + "/help/html"; |
809 | path += QPEApplication::qpeDir() + "/docs"; | 805 | path += QPEApplication::qpeDir() + "/docs"; |
810 | 806 | ||
811 | 807 | ||
812 | return path; | 808 | return path; |
813 | } | 809 | } |
814 | 810 | ||
815 | 811 | ||
816 | #include "global.moc" | 812 | #include "global.moc" |