An Integrated Framework For QoS-aware Data Reporting In Wireless Sensor Networks