- Fixed week view refresh after settings are changed
authorRisto Lintinen <lintiri@lintiri-desktop.(none)>
Thu, 27 Aug 2009 09:25:26 +0000 (12:25 +0300)
committerRisto Lintinen <lintiri@lintiri-desktop.(none)>
Thu, 27 Aug 2009 09:25:26 +0000 (12:25 +0300)
- Fixed day endtime can't be less than start time
- Added read and write access to conf file in postinstall

debian/postinst
debian/qtmeetings/DEBIAN/conffiles
debian/qtmeetings/DEBIAN/control
debian/qtmeetings/DEBIAN/md5sums
debian/qtmeetings/DEBIAN/postinst
debian/qtmeetings/DEBIAN/postrm
debian/qtmeetings/etc/QtMeetings.conf
debian/qtmeetings/usr/bin/qtmeetings
src/BusinessLogic/UIManager.cpp
src/UserInterface/Views/SettingsView.cpp
src/UserInterface/Views/SettingsView.h

index a729807..1296c0e 100644 (file)
@@ -4,4 +4,8 @@ set -e
 
 maemo-select-menu-location QtMeetings.desktop
 
+if [ -e /etc/QtMeetings.conf ]; then
+       chmod 666 /etc/QtMeetings.conf
+fi
+
 exit 0
\ No newline at end of file
index d97a05d..0457b6c 100644 (file)
@@ -1,2 +1,2 @@
-/etc/init.d/qtmeetings-launcher
 /etc/QtMeetings.conf
+/etc/init.d/qtmeetings-launcher
index 72b4cfb..e16ae0c 100644 (file)
@@ -1,10 +1,10 @@
 Package: qtmeetings
-Version: 1.0.5-1
+Version: 1.0.6-1
 Section: user/other
 Priority: optional
 Architecture: armel
-Depends: libalarm0 (>= 0.5.20), libc6 (>= 2.5.0-1), libgcc1 (>= 1:3.4.4), libqt4-network (>= 4.4.0), libqt4-xml (>= 4.4.0), libqtcore4 (>= 4.4.0), libqtgui4 (>= 4.4.0), libstdc++6 (>= 3.4.4)
-Installed-Size: 660
+Depends: libalarm0 (>= 0.5.20), libc6 (>= 2.5.0-1), libgcc1 (>= 1:3.4.4), libqt4-network (>= 4.5.0), libqt4-xml (>= 4.5.0), libqtcore4 (>= 4.5.0), libqtgui4 (>= 4.5.0), libstdc++6 (>= 3.4.4)
+Installed-Size: 952
 Maintainer: Zoltan Papp <zoltan.papp@ixonos.com>
 Description: Qt application to access meeting room's shared calendar
  on Microsoft Exchange Server 2007 developed for Nokia
index 479426b..b27420b 100644 (file)
@@ -1,7 +1,7 @@
-24d4fabbf8f62ef25a57769182b6417e  usr/share/doc/qtmeetings/README.Debian
-7895482ea907cf53dab85a4543e838f5  usr/share/doc/qtmeetings/copyright
-62db04cd3c8d12c924158af250a0d2df  usr/share/applications/hildon/QtMeetings.desktop
 3491e49963a41b9b27e27ead4e6d559b  usr/bin/qtmeetings-devstopper
-bbfd6c68e82075825bf439c6834e20c4  usr/bin/qtmeetings
-2d402ba0e905291c6c5ac0d4efe4d519  usr/bin/qtmeetings-updatercd
+ebce7d43fce37c2865bb80dfda7a486f  usr/bin/qtmeetings
 ad0a015d12de590f84f7d955255b9c1e  usr/bin/qtmeetings-rename
+2d402ba0e905291c6c5ac0d4efe4d519  usr/bin/qtmeetings-updatercd
+62db04cd3c8d12c924158af250a0d2df  usr/share/applications/hildon/QtMeetings.desktop
+7895482ea907cf53dab85a4543e838f5  usr/share/doc/qtmeetings/copyright
+24d4fabbf8f62ef25a57769182b6417e  usr/share/doc/qtmeetings/README.Debian
index a729807..1296c0e 100755 (executable)
@@ -4,4 +4,8 @@ set -e
 
 maemo-select-menu-location QtMeetings.desktop
 
+if [ -e /etc/QtMeetings.conf ]; then
+       chmod 666 /etc/QtMeetings.conf
+fi
+
 exit 0
\ No newline at end of file
index 00ece1c..5ca9600 100755 (executable)
@@ -25,4 +25,8 @@ if [ -e /usr/var/qtmeetings.txt ]; then
        rm /usr/var/qtmeetings.txt
 fi
 
+if [ -e /usr/var/qtmeetings.log ]; then
+       rm /usr/var/qtmeetings.log
+fi
+
 exit 0
index 7066087..9f1d726 100644 (file)
@@ -2,11 +2,7 @@
 <configuration password="admin" >
 
        <connection>
-               <!-- TEST SERVER DATA-->
-               <!--<serverurl>192.168.0.35</serverurl>
-               <username>maemo</username>
-               <password>P@ssw0rd</password>-->
-               <serverurl>jklexch01.ixonos.com</serverurl>
+               <serverurl></serverurl>
                <username></username>
                <password></password>
                <!-- interval is interpreted in seconds -->
@@ -14,7 +10,7 @@
        </connection>
 
        <startup>
-               <powersaving enabled="true" on="08:00" off="17:00" />
+               <powersaving enabled="true" on="08:00" off="16:00" />
        </startup>
 
        <display>
                        <name>Hercules</name>
                        <address>meetingroom.hercules@ixonos.com</address>
                </room>
-       </rooms>
+    </rooms>
+
+    <daylight_saving_time>
+               <!-- Sunday = 0, Monday = 1, Tuesday = 2 etc.. -->
+               <DayOfWeek>0</DayOfWeek>
+               <!-- date/time format is dd.MM.yyyy hh:mm:ss  -->
+               <StandardTimeChangeMoment>05.10.2009 03:00:00</StandardTimeChangeMoment>
+               <DaylightSaveTimeChangeMoment>01.04.2010 03:00:00</DaylightSaveTimeChangeMoment>
+    </daylight_saving_time>
+       
 
        <!-- language code must be in ISO 3166-1 alpha-2 standard -->
        <language code="EN" />
index a7ebed1..a317694 100755 (executable)
Binary files a/debian/qtmeetings/usr/bin/qtmeetings and b/debian/qtmeetings/usr/bin/qtmeetings differ
index 1c58381..066ca2d 100644 (file)
@@ -146,6 +146,9 @@ void UIManager::settingsViewRequest()
 void UIManager::settingsOkClicked()
 {
        // Show the weekly view and restart the idle timer
+       QT_DELETE(iWeeklyView);
+       createWeeklyView();
+
        if ( iWeeklyView != 0 )
        {
                iWindowManager->showView( static_cast<ViewBase *>( iWeeklyView ) );
index fad4c15..4730108 100644 (file)
@@ -195,6 +195,8 @@ QWidget *SettingsView::initWeekViewTab()
        wgl->addWidget( dayEndsLabel, 2, 0 );
        wgl->addWidget( iDayEndTime, 2, 1, 1, 2 );
 
+       connect( iDayStartTime, SIGNAL( timeChanged( QTime ) ), this, SLOT( dayStartTimeChanged( QTime ) ) );
+
        weeklyInformation->setLayout( wgl );
 
        QVBoxLayout *mainLayout = new QVBoxLayout;
@@ -411,6 +413,12 @@ void SettingsView::handleCancelClicked()
        emit cancelClicked();
 }
 
+void SettingsView::dayStartTimeChanged( const QTime &aTime )
+{
+       qDebug() << "dayStartTimeChanged " << aTime;
+       iDayEndTime->setMinimumTime( aTime );
+}
+
 void SettingsView::setValues()
 {
        // set user information
index 923da77..77e37cd 100644 (file)
@@ -10,6 +10,7 @@ class QTimeEdit;
 class QRadioButton;
 class QCheckBox;
 class QSize;
+class QTime;
 
 //! User interface class. Shows the settings view and handles configuration changes.
 class SettingsView : public ViewBase
@@ -40,6 +41,8 @@ private slots:
        void handleOkClicked();
        //! Slot to handle the Cancel button pressing.
        void handleCancelClicked();
+       //! Slot to handle the day end time minimum value
+       void dayStartTimeChanged( const QTime &aTime );
 
 private:
        //! Initialize "Settings" tab.