summaryrefslogtreecommitdiff
path: root/library
Unidiff
Diffstat (limited to 'library') (more/less context) (show whitespace changes)
-rw-r--r--library/Makefile.in26
-rw-r--r--library/global.cpp2
-rw-r--r--library/library.pro4
-rw-r--r--library/qpeapplication.cpp4
4 files changed, 17 insertions, 19 deletions
diff --git a/library/Makefile.in b/library/Makefile.in
index c89390f..b74b818 100644
--- a/library/Makefile.in
+++ b/library/Makefile.in
@@ -1,33 +1,33 @@
1############################################################################# 1#############################################################################
2 2
3####### Compiler, tools and options 3####### Compiler, tools and options
4 4
5 CXX =$(SYSCONF_CXX) $(QT_CXX_MT) 5 CXX =$(SYSCONF_CXX) $(QT_CXX_MT)
6 CXXFLAGS=$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) $(SYSCONF_CXXFLAGS_LIB) 6 CXXFLAGS=$(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) $(SYSCONF_CXXFLAGS_LIB)
7 CC =$(SYSCONF_CC) $(QT_C_MT) 7 CC =$(SYSCONF_CC) $(QT_C_MT)
8 CFLAGS =$(SYSCONF_CFLAGS) $(SYSCONF_CFLAGS_LIB) 8 CFLAGS =$(SYSCONF_CFLAGS) $(SYSCONF_CFLAGS_LIB)
9 INCPATH =-I$(QPEDIR)/include -Ibackend 9 INCPATH =-I$(OPIEDIR)/include -Ibackend
10 LFLAGS =$(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT) 10 LFLAGS =$(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT)
11 LIBS =$(SUBLIBS) -ldl -lcrypt -lm $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_QTAPP) 11 LIBS =$(SUBLIBS) -ldl -lcrypt -lm $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_QTAPP)
12 MOC =$(SYSCONF_MOC) 12 MOC =$(SYSCONF_MOC)
13 UIC =$(SYSCONF_UIC) 13 UIC =$(SYSCONF_UIC)
14 14
15####### Target 15####### Target
16 16
17DESTDIR = $(QTDIR)/lib$(PROJMAK)/ 17DESTDIR = $(QTDIR)/lib$(PROJMAK)/
18VER_MAJ = 1 18VER_MAJ = 1
19VER_MIN = 5 19VER_MIN = 5
20VER_PATCH = 0 20VER_PATCH = 0
21 TARGET= qpe 21 TARGET= qpe
22TARGET1 = lib$(TARGET).so.$(VER_MAJ) 22TARGET1 = lib$(TARGET).so.$(VER_MAJ)
23 23
24####### Files 24####### Files
25 25
26 HEADERS =calendar.h \ 26 HEADERS =calendar.h \
27 global.h \ 27 global.h \
28 resource.h \ 28 resource.h \
29 xmlreader.h \ 29 xmlreader.h \
30 mimetype.h \ 30 mimetype.h \
31 menubutton.h \ 31 menubutton.h \
32 network.h \ 32 network.h \
33 networkinterface.h \ 33 networkinterface.h \
@@ -436,49 +436,50 @@ qpedecoration_qws.o: qpedecoration_qws.cpp \
436 qpedecoration_qws.h \ 436 qpedecoration_qws.h \
437 qpeapplication.h \ 437 qpeapplication.h \
438 timestring.h \ 438 timestring.h \
439 resource.h \ 439 resource.h \
440 global.h 440 global.h
441 441
442qcopenvelope_qws.o: qcopenvelope_qws.cpp \ 442qcopenvelope_qws.o: qcopenvelope_qws.cpp \
443 qcopenvelope_qws.h \ 443 qcopenvelope_qws.h \
444 global.h 444 global.h
445 445
446qpeapplication.o: qpeapplication.cpp \ 446qpeapplication.o: qpeapplication.cpp \
447 qcopenvelope_qws.h \ 447 qcopenvelope_qws.h \
448 qpeapplication.h \ 448 qpeapplication.h \
449 qpedecoration_qws.h \ 449 qpedecoration_qws.h \
450 timestring.h \ 450 timestring.h \
451 qpestyle.h \ 451 qpestyle.h \
452 lightstyle.h \ 452 lightstyle.h \
453 global.h \ 453 global.h \
454 resource.h \ 454 resource.h \
455 config.h \ 455 config.h \
456 network.h \ 456 network.h \
457 fontmanager.h \ 457 fontmanager.h \
458 power.h \ 458 power.h \
459 alarmserver.h \ 459 alarmserver.h \
460 applnk.h 460 applnk.h \
461 qpemenubar.h
461 462
462qpestyle.o: qpestyle.cpp \ 463qpestyle.o: qpestyle.cpp \
463 qpestyle.h \ 464 qpestyle.h \
464 qpeapplication.h \ 465 qpeapplication.h \
465 qpedecoration_qws.h \ 466 qpedecoration_qws.h \
466 timestring.h 467 timestring.h
467 468
468qpedialog.o: qpedialog.cpp \ 469qpedialog.o: qpedialog.cpp \
469 qpedialog.h \ 470 qpedialog.h \
470 qpeapplication.h \ 471 qpeapplication.h \
471 qpedecoration_qws.h \ 472 qpedecoration_qws.h \
472 timestring.h 473 timestring.h
473 474
474lightstyle.o: lightstyle.cpp \ 475lightstyle.o: lightstyle.cpp \
475 lightstyle.h 476 lightstyle.h
476 477
477config.o: config.cpp \ 478config.o: config.cpp \
478 config.h 479 config.h
479 480
480applnk.o: applnk.cpp \ 481applnk.o: applnk.cpp \
481 applnk.h 482 applnk.h
482 483
483sound.o: sound.cpp 484sound.o: sound.cpp
484 485
@@ -512,49 +513,50 @@ password.o: password.cpp \
512 passwordbase_p.h 513 passwordbase_p.h
513 514
514process.o: process.cpp \ 515process.o: process.cpp \
515 process.h 516 process.h
516 517
517process_unix.o: process_unix.cpp \ 518process_unix.o: process_unix.cpp \
518 process_unix.moc \ 519 process_unix.moc \
519 process.h 520 process.h
520 521
521timestring.o: timestring.cpp \ 522timestring.o: timestring.cpp \
522 timestring.moc \ 523 timestring.moc \
523 timestring.h \ 524 timestring.h \
524 qpeapplication.h \ 525 qpeapplication.h \
525 qpedecoration_qws.h \ 526 qpedecoration_qws.h \
526 config.h 527 config.h
527 528
528fontdatabase.o: fontdatabase.cpp \ 529fontdatabase.o: fontdatabase.cpp \
529 qpeapplication.h \ 530 qpeapplication.h \
530 qpedecoration_qws.h \ 531 qpedecoration_qws.h \
531 timestring.h \ 532 timestring.h \
532 fontfactoryinterface.h \ 533 fontfactoryinterface.h \
533 fontdatabase.h 534 fontdatabase.h
534 535
535power.o: power.cpp \ 536power.o: power.cpp \
536 power.h 537 power.h \
538 custom.h
537 539
538storage.o: storage.cpp 540storage.o: storage.cpp
539 541
540qpemessagebox.o: qpemessagebox.cpp \ 542qpemessagebox.o: qpemessagebox.cpp \
541 qpemessagebox.h 543 qpemessagebox.h
542 544
543backend/timeconversion.o: backend/timeconversion.cpp \ 545backend/timeconversion.o: backend/timeconversion.cpp \
544 backend/timeconversion.h 546 backend/timeconversion.h
545 547
546qpedebug.o: qpedebug.cpp \ 548qpedebug.o: qpedebug.cpp \
547 qpedebug.h 549 qpedebug.h
548 550
549qpemenubar.o: qpemenubar.cpp \ 551qpemenubar.o: qpemenubar.cpp \
550 qpemenubar.h 552 qpemenubar.h
551 553
552qpetoolbar.o: qpetoolbar.cpp \ 554qpetoolbar.o: qpetoolbar.cpp \
553 qpetoolbar.h \ 555 qpetoolbar.h \
554 qpemenubar.h 556 qpemenubar.h
555 557
556backend/categories.o: backend/categories.cpp \ 558backend/categories.o: backend/categories.cpp \
557 backend/categories.h \ 559 backend/categories.h \
558 backend/qpcglobal.h \ 560 backend/qpcglobal.h \
559 backend/palmtopuidgen.h \ 561 backend/palmtopuidgen.h \
560 backend/stringutil.h 562 backend/stringutil.h
@@ -589,49 +591,50 @@ categorymenu.o: categorymenu.cpp \
589 backend/categories.h \ 591 backend/categories.h \
590 backend/qpcglobal.h \ 592 backend/qpcglobal.h \
591 backend/palmtopuidgen.h \ 593 backend/palmtopuidgen.h \
592 categoryselect.h 594 categoryselect.h
593 595
594categoryedit_p.o: categoryedit_p.cpp \ 596categoryedit_p.o: categoryedit_p.cpp \
595 categoryedit_p.h \ 597 categoryedit_p.h \
596 categoryeditbase_p.h 598 categoryeditbase_p.h
597 599
598categoryselect.o: categoryselect.cpp \ 600categoryselect.o: categoryselect.cpp \
599 categorywidget.h \ 601 categorywidget.h \
600 categoryselect.h 602 categoryselect.h
601 603
602categorywidget.o: categorywidget.cpp \ 604categorywidget.o: categorywidget.cpp \
603 categoryedit_p.h \ 605 categoryedit_p.h \
604 categoryeditbase_p.h \ 606 categoryeditbase_p.h \
605 categorywidget.h 607 categorywidget.h
606 608
607ir.o: ir.cpp \ 609ir.o: ir.cpp \
608 ir.h \ 610 ir.h \
609 qcopenvelope_qws.h \ 611 qcopenvelope_qws.h \
610 applnk.h 612 applnk.h
611 613
612backend/vcc_yacc.o: backend/vcc_yacc.cpp \ 614backend/vcc_yacc.o: backend/vcc_yacc.cpp \
613 backend/vobject_p.h 615 backend/vobject_p.h \
616 backend/qfiledirect_p.h
614 617
615backend/vobject.o: backend/vobject.cpp \ 618backend/vobject.o: backend/vobject.cpp \
616 backend/vobject_p.h \ 619 backend/vobject_p.h \
617 backend/qfiledirect_p.h 620 backend/qfiledirect_p.h
618 621
619findwidget_p.o: findwidget_p.cpp \ 622findwidget_p.o: findwidget_p.cpp \
620 findwidget_p.h \ 623 findwidget_p.h \
621 findwidgetbase_p.h 624 findwidgetbase_p.h
622 625
623finddialog.o: finddialog.cpp \ 626finddialog.o: finddialog.cpp \
624 finddialog.h \ 627 finddialog.h \
625 findwidget_p.h \ 628 findwidget_p.h \
626 findwidgetbase_p.h 629 findwidgetbase_p.h
627 630
628lnkproperties.o: lnkproperties.cpp \ 631lnkproperties.o: lnkproperties.cpp \
629 lnkproperties.h \ 632 lnkproperties.h \
630 lnkpropertiesbase_p.h \ 633 lnkpropertiesbase_p.h \
631 ir.h 634 ir.h
632 635
633quuid.o: quuid.cpp \ 636quuid.o: quuid.cpp \
634 quuid.h 637 quuid.h
635 638
636qlibrary.o: qlibrary.cpp \ 639qlibrary.o: qlibrary.cpp \
637 qlibrary_p.h \ 640 qlibrary_p.h \
@@ -658,62 +661,57 @@ passwordbase_p.cpp: passwordbase_p.ui
658proxiesbase_p.h: proxiesbase_p.ui 661proxiesbase_p.h: proxiesbase_p.ui
659 $(UIC) proxiesbase_p.ui -o $(INTERFACE_DECL_PATH)/proxiesbase_p.h 662 $(UIC) proxiesbase_p.ui -o $(INTERFACE_DECL_PATH)/proxiesbase_p.h
660 663
661proxiesbase_p.cpp: proxiesbase_p.ui 664proxiesbase_p.cpp: proxiesbase_p.ui
662 $(UIC) proxiesbase_p.ui -i proxiesbase_p.h -o proxiesbase_p.cpp 665 $(UIC) proxiesbase_p.ui -i proxiesbase_p.h -o proxiesbase_p.cpp
663 666
664categoryeditbase_p.h: categoryeditbase_p.ui 667categoryeditbase_p.h: categoryeditbase_p.ui
665 $(UIC) categoryeditbase_p.ui -o $(INTERFACE_DECL_PATH)/categoryeditbase_p.h 668 $(UIC) categoryeditbase_p.ui -o $(INTERFACE_DECL_PATH)/categoryeditbase_p.h
666 669
667categoryeditbase_p.cpp: categoryeditbase_p.ui 670categoryeditbase_p.cpp: categoryeditbase_p.ui
668 $(UIC) categoryeditbase_p.ui -i categoryeditbase_p.h -o categoryeditbase_p.cpp 671 $(UIC) categoryeditbase_p.ui -i categoryeditbase_p.h -o categoryeditbase_p.cpp
669 672
670findwidgetbase_p.h: findwidgetbase_p.ui 673findwidgetbase_p.h: findwidgetbase_p.ui
671 $(UIC) findwidgetbase_p.ui -o $(INTERFACE_DECL_PATH)/findwidgetbase_p.h 674 $(UIC) findwidgetbase_p.ui -o $(INTERFACE_DECL_PATH)/findwidgetbase_p.h
672 675
673findwidgetbase_p.cpp: findwidgetbase_p.ui 676findwidgetbase_p.cpp: findwidgetbase_p.ui
674 $(UIC) findwidgetbase_p.ui -i findwidgetbase_p.h -o findwidgetbase_p.cpp 677 $(UIC) findwidgetbase_p.ui -i findwidgetbase_p.h -o findwidgetbase_p.cpp
675 678
676lnkpropertiesbase_p.h: lnkpropertiesbase_p.ui 679lnkpropertiesbase_p.h: lnkpropertiesbase_p.ui
677 $(UIC) lnkpropertiesbase_p.ui -o $(INTERFACE_DECL_PATH)/lnkpropertiesbase_p.h 680 $(UIC) lnkpropertiesbase_p.ui -o $(INTERFACE_DECL_PATH)/lnkpropertiesbase_p.h
678 681
679lnkpropertiesbase_p.cpp: lnkpropertiesbase_p.ui 682lnkpropertiesbase_p.cpp: lnkpropertiesbase_p.ui
680 $(UIC) lnkpropertiesbase_p.ui -i lnkpropertiesbase_p.h -o lnkpropertiesbase_p.cpp 683 $(UIC) lnkpropertiesbase_p.ui -i lnkpropertiesbase_p.h -o lnkpropertiesbase_p.cpp
681 684
682passwordbase_p.o: passwordbase_p.cpp \ 685passwordbase_p.o: passwordbase_p.cpp
683 passwordbase_p.h
684 686
685proxiesbase_p.o: proxiesbase_p.cpp \ 687proxiesbase_p.o: proxiesbase_p.cpp
686 proxiesbase_p.h
687 688
688categoryeditbase_p.o: categoryeditbase_p.cpp \ 689categoryeditbase_p.o: categoryeditbase_p.cpp
689 categoryeditbase_p.h
690 690
691findwidgetbase_p.o: findwidgetbase_p.cpp \ 691findwidgetbase_p.o: findwidgetbase_p.cpp
692 findwidgetbase_p.h
693 692
694lnkpropertiesbase_p.o: lnkpropertiesbase_p.cpp \ 693lnkpropertiesbase_p.o: lnkpropertiesbase_p.cpp
695 lnkpropertiesbase_p.h
696 694
697moc_menubutton.o: moc_menubutton.cpp \ 695moc_menubutton.o: moc_menubutton.cpp \
698 menubutton.h 696 menubutton.h
699 697
700moc_proxies.o: moc_proxies.cpp \ 698moc_proxies.o: moc_proxies.cpp \
701 proxies.h \ 699 proxies.h \
702 config.h 700 config.h
703 701
704moc_datebookmonth.o: moc_datebookmonth.cpp \ 702moc_datebookmonth.o: moc_datebookmonth.cpp \
705 datebookmonth.h \ 703 datebookmonth.h \
706 calendar.h \ 704 calendar.h \
707 timestring.h 705 timestring.h
708 706
709moc_fileselector.o: moc_fileselector.cpp \ 707moc_fileselector.o: moc_fileselector.cpp \
710 fileselector.h \ 708 fileselector.h \
711 filemanager.h \ 709 filemanager.h \
712 applnk.h 710 applnk.h
713 711
714moc_imageedit.o: moc_imageedit.cpp \ 712moc_imageedit.o: moc_imageedit.cpp \
715 imageedit.h 713 imageedit.h
716 714
717moc_qpedecoration_qws.o: moc_qpedecoration_qws.cpp \ 715moc_qpedecoration_qws.o: moc_qpedecoration_qws.cpp \
718 qpedecoration_qws.h 716 qpedecoration_qws.h
719 717
diff --git a/library/global.cpp b/library/global.cpp
index e1bbf3e..e5fc2b3 100644
--- a/library/global.cpp
+++ b/library/global.cpp
@@ -113,49 +113,49 @@ bool StartingAppList::isStarting( const QString name )
113 if ( t->elapsed() > 10000 ) { 113 if ( t->elapsed() > 10000 ) {
114 // timeout in case of crash or something 114 // timeout in case of crash or something
115 appl->dict.remove( "QPE/Application/" + name ); 115 appl->dict.remove( "QPE/Application/" + name );
116 return FALSE; 116 return FALSE;
117 } 117 }
118 return TRUE; 118 return TRUE;
119 } 119 }
120#endif 120#endif
121 return FALSE; 121 return FALSE;
122} 122}
123 123
124void StartingAppList::handleNewChannel( const QString & name ) 124void StartingAppList::handleNewChannel( const QString & name )
125{ 125{
126#if QT_VERSION >= 232 && !defined(QT_NO_COP) 126#if QT_VERSION >= 232 && !defined(QT_NO_COP)
127 dict.remove( name ); 127 dict.remove( name );
128#endif 128#endif
129} 129}
130 130
131static bool docDirCreated = FALSE; 131static bool docDirCreated = FALSE;
132static QDawg* fixed_dawg = 0; 132static QDawg* fixed_dawg = 0;
133static QDict<QDawg> *named_dawg = 0; 133static QDict<QDawg> *named_dawg = 0;
134 134
135static QString qpeDir() 135static QString qpeDir()
136{ 136{
137 QString dir = getenv("QPEDIR"); 137 QString dir = getenv("OPIEDIR");
138 if ( dir.isEmpty() ) dir = ".."; 138 if ( dir.isEmpty() ) dir = "..";
139 return dir; 139 return dir;
140} 140}
141 141
142static QString dictDir() 142static QString dictDir()
143{ 143{
144 return qpeDir() + "/etc/dict"; 144 return qpeDir() + "/etc/dict";
145} 145}
146 146
147/*! 147/*!
148 \class Global global.h 148 \class Global global.h
149 \brief The Global class collects application-wide global functions. 149 \brief The Global class collects application-wide global functions.
150*/ 150*/
151 151
152/*! 152/*!
153 \internal 153 \internal
154*/ 154*/
155Global::Global() 155Global::Global()
156{ 156{
157} 157}
158 158
159/*! 159/*!
160 Returns the unchangeable QDawg that contains general 160 Returns the unchangeable QDawg that contains general
161 words for the current locale. 161 words for the current locale.
diff --git a/library/library.pro b/library/library.pro
index 06dfc8f..058d216 100644
--- a/library/library.pro
+++ b/library/library.pro
@@ -98,35 +98,35 @@ SOURCES = calendar.cpp \
98 qpemenubar.cpp \ 98 qpemenubar.cpp \
99 qpetoolbar.cpp \ 99 qpetoolbar.cpp \
100 backend/categories.cpp \ 100 backend/categories.cpp \
101 backend/stringutil.cpp \ 101 backend/stringutil.cpp \
102 backend/palmtoprecord.cpp \ 102 backend/palmtoprecord.cpp \
103 backend/task.cpp \ 103 backend/task.cpp \
104 backend/event.cpp \ 104 backend/event.cpp \
105 backend/contact.cpp \ 105 backend/contact.cpp \
106 categorymenu.cpp \ 106 categorymenu.cpp \
107 categoryedit_p.cpp \ 107 categoryedit_p.cpp \
108 categoryselect.cpp \ 108 categoryselect.cpp \
109 categorywidget.cpp \ 109 categorywidget.cpp \
110 ir.cpp \ 110 ir.cpp \
111 backend/vcc_yacc.cpp \ 111 backend/vcc_yacc.cpp \
112 backend/vobject.cpp \ 112 backend/vobject.cpp \
113 findwidget_p.cpp \ 113 findwidget_p.cpp \
114 finddialog.cpp \ 114 finddialog.cpp \
115 lnkproperties.cpp 115 lnkproperties.cpp
116 116
117# Qt 3 compatibility 117# Qt 3 compatibility
118qt2:HEADERS += quuid.h qcom.h qlibrary.h qlibrary_p.h qprocess.h 118qt2:HEADERS += quuid.h qcom.h qlibrary.h qlibrary_p.h qprocess.h
119qt2:SOURCES += quuid.cpp qlibrary.cpp qlibrary_unix.cpp qprocess.cpp \ 119qt2:SOURCES += quuid.cpp qlibrary.cpp qlibrary_unix.cpp qprocess.cpp \
120 qprocess_unix.cpp 120 qprocess_unix.cpp
121 121
122INCLUDEPATH += $(QPEDIR)/include backend 122INCLUDEPATH += $(OPIEDIR)/include backend
123 LIBS += -ldl -lcrypt -lm 123 LIBS += -ldl -lcrypt -lm
124 124
125INTERFACES = passwordbase_p.ui proxiesbase_p.ui categoryeditbase_p.ui findwidgetbase_p.ui lnkpropertiesbase_p.ui 125INTERFACES = passwordbase_p.ui proxiesbase_p.ui categoryeditbase_p.ui findwidgetbase_p.ui lnkpropertiesbase_p.ui
126 126
127 TARGET = qpe 127 TARGET = qpe
128 DESTDIR = $(QTDIR)/lib$(PROJMAK) 128 DESTDIR = $(QTDIR)/lib$(PROJMAK)
129# This is set by configure$(QPEDIR). 129# This is set by configure$(OPIEDIR).
130 VERSION = 1.5.0 130 VERSION = 1.5.0
131 131
132TRANSLATIONS = ../i18n/de/libqpe.ts 132TRANSLATIONS = ../i18n/de/libqpe.ts
diff --git a/library/qpeapplication.cpp b/library/qpeapplication.cpp
index f0a68cf..70ffec1 100644
--- a/library/qpeapplication.cpp
+++ b/library/qpeapplication.cpp
@@ -769,53 +769,53 @@ bool QPEApplication::qwsEventFilter( QWSEvent *e )
769 Global::hideInputMethod(); 769 Global::hideInputMethod();
770 if ( m == AlwaysOn ) 770 if ( m == AlwaysOn )
771 Global::showInputMethod(); 771 Global::showInputMethod();
772 } 772 }
773 } 773 }
774 return QApplication::qwsEventFilter( e ); 774 return QApplication::qwsEventFilter( e );
775} 775}
776 776
777/*! 777/*!
778 Destroys the QPEApplication. 778 Destroys the QPEApplication.
779*/ 779*/
780QPEApplication::~QPEApplication() 780QPEApplication::~QPEApplication()
781{ 781{
782 ungrabKeyboard(); 782 ungrabKeyboard();
783#if defined(Q_WS_QWS) && !defined(QT_NO_COP) 783#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
784 // Need to delete QCopChannels early, since the display will 784 // Need to delete QCopChannels early, since the display will
785 // be gone by the time we get to ~QObject(). 785 // be gone by the time we get to ~QObject().
786 delete sysChannel; 786 delete sysChannel;
787 delete pidChannel; 787 delete pidChannel;
788#endif 788#endif
789 delete d; 789 delete d;
790} 790}
791 791
792/*! 792/*!
793 Returns <tt>$QPEDIR/</tt>. 793 Returns <tt>$OPIEDIR/</tt>.
794*/ 794*/
795QString QPEApplication::qpeDir() 795QString QPEApplication::qpeDir()
796{ 796{
797 const char *base = getenv( "QPEDIR" ); 797 const char *base = getenv( "OPIEDIR" );
798 if ( base ) 798 if ( base )
799 return QString( base ) + "/"; 799 return QString( base ) + "/";
800 800
801 return QString( "../" ); 801 return QString( "../" );
802} 802}
803 803
804/*! 804/*!
805 Returns the user's current Document directory. There is a trailing "/". 805 Returns the user's current Document directory. There is a trailing "/".
806*/ 806*/
807QString QPEApplication::documentDir() 807QString QPEApplication::documentDir()
808{ 808{
809 const char *base = getenv( "HOME" ); 809 const char *base = getenv( "HOME" );
810 if ( base ) 810 if ( base )
811 return QString( base ) + "/Documents/"; 811 return QString( base ) + "/Documents/";
812 812
813 return QString( "../Documents/" ); 813 return QString( "../Documents/" );
814} 814}
815 815
816static int deforient=-1; 816static int deforient=-1;
817 817
818/*! 818/*!
819 \internal 819 \internal
820*/ 820*/
821int QPEApplication::defaultRotation() 821int QPEApplication::defaultRotation()